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
Would it be possible (probably it could) to add a config option to the translator with a default fallback text for missing translations?
For example:
// current working (without translation)echotrans('home.welcome'); // Outputs: "home.welcome"// desired working (without translation)config(['translator.missing_text'=>'TRANS_MISSING']); // Setting a config with the default return text on empty translationechotrans('home.welcome'); // Outputs: "TRANS_MISSING"
(Or in the app config. Now I see the locale settings are in there..)
With this feature we could show the developers easier that there is missing a translation. Also on for example, Cypress testing, we could just do a quick scan over all pages to search for this missing translation placeholder.
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
-
Would it be possible (probably it could) to add a config option to the translator with a default fallback text for missing translations?
For example:
(Or in the app config. Now I see the locale settings are in there..)
With this feature we could show the developers easier that there is missing a translation. Also on for example, Cypress testing, we could just do a quick scan over all pages to search for this missing translation placeholder.
Beta Was this translation helpful? Give feedback.
All reactions