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
Go version: 1.20
Universal Translator version: v0.18.0
I would like to asking if there are any limitation when importing translation using JSON format.
In before, when using this library, I always got the translation I meant. But in couple of days, when I add new key in JSON format, the translator return "unknown translation"
// ... there already a lot of key and value above these two
{
"key": "morning",
"locales": "en",
"trans": "Morning"
},
{
"key": "morning",
"locales": "id",
"trans": "Pagi"
},
But when I call with:
trans, found:=newTranslator.GetTranslator("id")
if!found {
log.Fatal("not found translation")
}
returntrans.T("morning")
It will return: Unknown Translation. So, how do I fix it?
The text was updated successfully, but these errors were encountered:
Hello,
Go version: 1.20
Universal Translator version: v0.18.0
I would like to asking if there are any limitation when importing translation using JSON format.
In before, when using this library, I always got the translation I meant. But in couple of days, when I add new key in JSON format, the translator return "unknown translation"
Here is the snippet of my code:
Here is my translation file:
But when I call with:
It will return:
Unknown Translation
. So, how do I fix it?The text was updated successfully, but these errors were encountered: