Replies: 1 comment 6 replies
-
I think https://github.com/fnando/i18n-js/blob/v3/spec/js/translate.spec.js provides the test cases about scope option. |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I had the following working code to get a translation:
Then I wanted to use always the scope option instead of interpolating strings or use the array syntax.
So I wrote it like this:
In case of a missing translation, the first code returns the translation using the defaults ('configurations.jobs.statuses.pending.default'), but the second code doesn't consider it and it returns the "missing translation" message instead.
What am I doing wrong here? I thought the scope option could be used instead of the array syntax to specify the scope, e.g.:
instead of
Thank you for your support!
Beta Was this translation helpful? Give feedback.
All reactions