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
I am experiencing some problems when translating text server-side using arguments.
The projects contains two languages: English (default) and Dutch.
en.i18n.json { "This is a message": "This is a test message: %s" }
nl.i18n.json { "This is a message": "Dit is een test bericht: %s" }
When I do not pass the argument everything works fine: TAPi18n.__("This is a message", null, "nl"): "Dit is een test bericht: %s"
When I do pass the argument the text will always return in english: TAPi18n.__("This is a message", "Hallo Wereld!", "nl"): "This is a test message: Hallo Wereld!"
This only occurs when using on server-side. At client-side everything works fine since we can use the setLanguage() function there. The issue seems to be a problem with the extra lang_tag parameter.
Is there someway to fix this on our side, or is this an issue in the package?
Looking forward hearing from you!
Regards,
Jesse
The text was updated successfully, but these errors were encountered:
Hi,
I am experiencing some problems when translating text server-side using arguments.
The projects contains two languages: English (default) and Dutch.
en.i18n.json
{ "This is a message": "This is a test message: %s" }
nl.i18n.json
{ "This is a message": "Dit is een test bericht: %s" }
When I do not pass the argument everything works fine:
TAPi18n.__("This is a message", null, "nl")
: "Dit is een test bericht: %s"When I do pass the argument the text will always return in english:
TAPi18n.__("This is a message", "Hallo Wereld!", "nl")
: "This is a test message: Hallo Wereld!"This only occurs when using on server-side. At client-side everything works fine since we can use the
setLanguage()
function there. The issue seems to be a problem with the extra lang_tag parameter.Is there someway to fix this on our side, or is this an issue in the package?
Looking forward hearing from you!
Regards,
Jesse
The text was updated successfully, but these errors were encountered: