Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • kresus kresus
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 147
    • Issues 147
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 2
    • Merge requests 2
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • kresusapp
  • kresuskresus
  • Issues
  • #585
Closed
Open
Issue created May 16, 2017 by Antoine@ZeHiroDeveloper0 of 3 checklist items completed0/3 checklist items

Migrate translations to state

  • the "$t" function should become a getter.
  • The translation should added in the connect() function.
  • This will allow to properly rerender the components on changing the language.

State proposal at first approach:

state = {
    ui: { // Already existing
        translations:
            en: {
                the_key: "The translation" // Note: the_key sould not include the 'client.'
            },
            fr: {
                the_key: "La traduction"
            }
        }
    }
}
Assignee
Assign to
Time tracking