Coder Social home page Coder Social logo

Comments (10)

sbarbat avatar sbarbat commented on September 2, 2024 1

I think is a great idea! πŸŽ‰

from core.

sbarbat avatar sbarbat commented on September 2, 2024

Yeap it would be nice, but the forum works on a different way now. It is an REST API + Vuejs on the frontend. So we will need to find a way of loading all the translations when the app loads at first and then use them on the Vuejs templates. How does that sound?

from core.

gaetandezeiraud avatar gaetandezeiraud commented on September 2, 2024

Why not using https://kazupon.github.io/vue-i18n/ for the frontend? Or similar implementation.

from core.

gaetandezeiraud avatar gaetandezeiraud commented on September 2, 2024

I can make the integration if it's good for you! Vue-i18n or custom integration.

from core.

Lukasz93P avatar Lukasz93P commented on September 2, 2024

@Brouilles Hi, translations sounds great, but are you working/will be working on that or you have abandoned this idea?

from core.

gaetandezeiraud avatar gaetandezeiraud commented on September 2, 2024

Hi.
Sorry but I not working anymore on this. I have developping m'y own forums system with Livewire.

from core.

Lukasz93P avatar Lukasz93P commented on September 2, 2024

@Brouilles ok, thanks for answer ;)

from core.

Lukasz93P avatar Lukasz93P commented on September 2, 2024

@Brouilles can you help me a little bit?
I'm a pure backend developer and I found adding i18n for vue a little bit difficult for me. In examples I see code like that:

const messages = {
  en: {
    message: {
      hello: 'hello world'
    }
  },
  ja: {
    message: {
      hello: 'γ“γ‚“γ«γ‘γ―γ€δΈ–η•Œ'
    }
  }
}

// Create VueI18n instance with options
const i18n = new VueI18n({
  locale: 'ja', // set locale
  messages, // set locale messages
})


// Create a Vue instance with `i18n` option
new Vue({ i18n }).$mount('#app')

I understand that locale and message will be passed to the Vue from the php backend but I dont know where they should be passed, into which file, I don't know where vue is instantiated and don't know how to pass those variables to make them work both in my own components and also for this package (after replacing hardcoded values inside this package).

Can you explain it to me?

from core.

Lukasz93P avatar Lukasz93P commented on September 2, 2024

@Brouilles @galdazbiz if you are still interested then you can look at this #39

from core.

sbarbat avatar sbarbat commented on September 2, 2024

Fixed in #39, thanks to @Lukasz93P

from core.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.