react-translate-component icon indicating copy to clipboard operation
react-translate-component copied to clipboard

a default message when the translator is not defined

Open AliMohammad93 opened this issue 4 years ago • 1 comments

Hello, how can I set a default message instead of "missing translation" ?

AliMohammad93 avatar Dec 06 '19 15:12 AliMohammad93

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

martinandert avatar Dec 06 '19 16:12 martinandert