question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

3.1.1 Feature or Bug?

See original GitHub issue

Is it a feature, that only the first namespace should be passed?

Changelog.md states:

fixes issue in fixing t function - pass only first namespace not an array of namespaces

But this is not a minor change. It broke a lot of our translation.

We used it like:

export default translate(['namespace1', 'namespace2'])(Component);

Can you at least release it as major?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:9 (8 by maintainers)

github_iconTop GitHub Comments

3reactions
jamuhlcommented, May 16, 2017

react-i18next@4.1.0

You can now translate(['ns1', 'ns2'], { nsMode: 'fallback' } to toggle that back to pre v4 behaviour (using passed namespaces as ordered fallbacks).

Or you can set that “globally” by i18next.init({ react: { nsMode: 'fallback' } });

3reactions
vpriemcommented, May 11, 2017

Hi jamuhl,

why not revert it as the next minor and do this as a major? We will not be the only one having this breaking change.

Anyway when I take a look at http://i18next.com/translate/namespace/#basic it seems to be a standard (and nice) feature to pass several namespaces and use the last one as a fallback, without having to prefix it. So honestly I don’t understand the benefit of that change/fix or do you mean this is an issue and you will provide a fix?

BTW: translate('namespace1') instead of translate(['namespace1') is nice and should be documented.

Read more comments on GitHub >

github_iconTop Results From Across the Web

3.1.1 Head bobbing while sprinting, bug or feature? - YouTube
It feels like I'm on a sinking ship :)In real life our brains compensate for this.Edit: I wasn't at kareah for ages, it...
Read more >
Everything about One UI version 3.1 - SamMobile
One UI 3.1 features​​ One UI 3.1 introduces a number of new features. The biggest highlight is the addition of Google Discover on...
Read more >
Google releases bug-fixing Android 13 Beta 3.1 update faster ...
Android 13 Beta 3.1 is now rolling out mere days after Beta 3 landed, with only a single fix included.
Read more >
Samsung begins rolling out One UI 3.1.1 features to devices ...
1 features to One UI 3.1, its OS for smartphones. Apparently, One UI 3.1 now has faster animations, camera app performance improvements and...
Read more >
x3270 Version 3.1.1 -- New Features and Bug Fixes
x3270 Version 3.1.1 -- New Features and Bug Fixes. x3270 3.1.1.6 is functionally identical to x3270 3.1.0.7, with the following exceptions: ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found