You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 17, 2024. It is now read-only.
Let us use the translations in another way that we are doing right now.
The $translate functionality gets a string and uses it as a key to finding a translation in the selected current language. If the translation doesn't exist, it uses the key as the string. So, for English, we use the key, and we don't have a translation file.
If we change the copy at some point, we will need to change every single translation file.
Maybe we can set up a key-generator rule something as we do in BEM: component__section__text-description
And then create the English translations of that key to the official copy text.
code qualityIssues related to code health like refactors and cleanups.
1 participant
Converted from issue
This discussion was converted from issue #2219 on December 21, 2021 10:55.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Let us use the translations in another way that we are doing right now.
The
$translate
functionality gets a string and uses it as a key to finding a translation in the selected current language. If the translation doesn't exist, it uses the key as the string. So, for English, we use the key, and we don't have a translation file.If we change the copy at some point, we will need to change every single translation file.
Maybe we can set up a key-generator rule something as we do in BEM:
component__section__text-description
And then create the English translations of that key to the official copy text.
Beta Was this translation helpful? Give feedback.
All reactions