question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Override component translations

See original GitHub issue

I would like to create translatable reusable component, but I cannot figure out how to override component default locales from global locales. Is it possible now? Like this maybe In component:

locales: {
  en: { hello: 'world' },
}

In global locales:

en: { componentName: { hello: 'my world' } }

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:1
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

5reactions
iiomecommented, Aug 4, 2017

@kazupon another use case I currently face is that a few customers disagree with the way to translate a word.

Components translations is fantastic to keep the translations close to the need. Global translation could be a nice way to customise the translation when a subset of the users need to see something translated differently.

3reactions
paul-blundellcommented, Mar 16, 2018

There is definitely a valid use case for this. Please reopen and reconsider this.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Override Translations in Second-Generation Managed ...
You can override metadata translations for custom objects in namespaced unlocked packages and second-generation managed packages. For example, override the ...
Read more >
Overriding frontend components - richie.education
Override an existing translation key​. As explain above, the compilation process aggregates translations files then merges them according their ...
Read more >
How to override a module translation? - Odoo
I would visit the structure of your inheritance. Make sure you have inherited the original module in a way that it will override...
Read more >
How to override react-admin existing translation - Stack Overflow
Use the type TranslationMessages. So, remove Ra Object and add directly your translations export const messages : TranslationMessages = { .
Read more >
Overriding Global Language Translations - Learn — Liferay
Liferay DXP/Portal implements headings, labels, and messages for the default locale and many other locales using language translations. You can override these ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found