how to handle missing translation keys
-
Hi,
I would like to be able to display the translation key if the translation is missing for that key,
Is there a way to achieve this ?
-
hi! hmm i'm a bit confused, you are talking about resources, right? so what i understand from your description is that you want to do something like this:
with a template with content: "{{$localizedResource.greeting}}" that have localized resources in english
enan spanishes, when the request is inenoreslanguage show the normal message, "Hello" -> in englishen, and "Hola" -> in spanishes, but if for some reason your request sendsdeas language you just want to show "gretting", is that true? if yes, then here you have an example that shows how to do it. you can change the language used todeto see how it shows the key when there is no value for that key.
-
Thank you.