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.

withNamespaces doesnt work with multiple name spaces

See original GitHub issue

Describe the bug

withNamespaces doesnt work with multiple name spaces

withNamespaces('common', 'footer')(Footer); 
//only common namesapce is avaialable

Occurs in next-i18next version

0.32.1

Steps to reproduce

withNamespaces('common', 'footer')(Footer);

Expected behaviour

It should load both the namespaces

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:10 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
mohitmayankcommented, Feb 25, 2019

i have tried that as well. but now i figured i can use ‘namespace:key’. closing this.

1reaction
isaachinmancommented, Mar 15, 2019

I thought I could use t function from i18n object

No, you cannot. In the SSR context, the localisation comes off req.i18n. Feel free to search the issues of this repo for similar questions.

Is it possible to use HOC on a simple const

HOCs are for React components. Just put your checkboxes logic inside the component.

Read more comments on GitHub >

github_iconTop Results From Across the Web

withNamespaces doesnt work with multiple name spaces #198
Found this closed but i'm facing the exact same issue, loading multiple namespace like withNamespaces(['common', 'footer'])(Footer); is not ...
Read more >
Xquery not working with namespaces - xml - Stack Overflow
I'm a beginner to xQuery, and I'm trying to list all subclasses of the root node in an XML file. However, the root...
Read more >
The Trouble with Namespaces - Spatial's Blog
Today, I'm going to talk about the way my attitude towards using namespaces has pretty much done a complete reversal over the last...
Read more >
Managing Namespaces in an XML Document - Microsoft Learn
When you use multiple namespaces in an XML document, you can define one namespace as the default namespace to create a cleaner looking...
Read more >
Working with Namespaces in C#
In C#, namespaces are used to logically arrange classes, structs, interfaces, enums and delegates. The namespaces in C# can be nested.
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