react-translate-component
react-translate-component copied to clipboard
a default message when the translator is not defined
Hello, how can I set a default message instead of "missing translation" ?
You can use counterpart.setMissingEntryGenerator(fn)
. By default, fn
is set to function(key) { return 'missing translation: ' + key; }
.
See also: https://github.com/martinandert/counterpart#dealing-with-missing-translations