Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • GGCE Web GGCE Web
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 31
    • Issues 31
    • List
    • Boards
    • Service Desk
    • Milestones
  • Deployments
    • Deployments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • GGCE
  • GGCE WebGGCE Web
  • Issues
  • #303
Closed
Open
Created Jul 23, 2021 by Matija Obreza@mobrezaOwner

Wrapped i18n t-function

We need a way to change the output of the t() function. In this ticket, we implement a wrapped t() function that allows us to modify the result of the i18next t() call. The wrapped function works in two modes: (1) is a simple pass-through that just returns the result of the original t, and (2) returns the "key" plus the translation: { args[0] }:{ t(...args) }.

Ideally, the mode of operation is controlled with a Redux state variable.

Assignee
Assign to
Time tracking