Localization275 Documents

Reuse Existing Keys

Before introducing a localization key, search existing keys and their meanings across development core, API core, panel core, site core, and parts. Reuse an existing key when its meaning matches, even if the current use concerns a different part or field. Generic actions and states keep generic keys: copying a pronunciation uses coreCopy and coreCopied, not new pronunciation-specific keys.

Correct

translateInternally('coreCopy')
translateInternally('coreCopied')

Incorrect

translateInternally('englishCopyPronunciation')
{ "copyPronunciation": "Copy pronunciation" }

Exceptions

  • Create a separate key when the text has a different meaning or needs a different translation in context.