We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ec9c8d0 + 31e91b5 commit 3e7a2b2Copy full SHA for 3e7a2b2
src/createTranslations.ts
@@ -42,6 +42,13 @@ export const createTranslations = (ns: string = 'main'): Result => {
42
}
43
44
45
+ shouldComponentUpdate (nextProps) {
46
+ if (nextProps.locale !== this.props.locale) {
47
+ this.setLocale(nextProps.locale);
48
+ }
49
+ return true;
50
+ };
51
+
52
load = async (locale: string, ns: string) => {
53
if (!this.state.map[locale]) {
54
this.state.map[locale] = {};
0 commit comments