Aral Roca Gomez
Aral Roca Gomez
@fernandoamz maybe this help https://github.com/vinissimus/next-translate/discussions/681#discussioncomment-1286092
@XMadFoX The `namespace:key` is returned to make it easier to identify them. Maybe it would be nice if this was configurable. For now, the fallback can be configured at the...
@XMadFoX I prereleased [1.0.2-canary.4](https://github.com/vinissimus/next-translate/releases/tag/1.0.2-canary.4) with the PR that @j-schumann did if you want to start using it
How is your [`loadLocaleFrom`](https://github.com/vinissimus/next-translate#create-your-namespaces-files) function? The default one use a dynamic import https://github.com/vinissimus/next-translate/blob/1.3.5/src/plugin/utils.ts#L6-L7 ```js (locale, namespace) => import(`@next-translate-root/locales/${locale}/${namespace}`).then(m => m.default) ``` I dunno how `revalidate` works, but maybe is not...
Do you know if the problem is that the`loadLocaleFrom` is not called after the `unstable_revalidate`? > I thought using the appWithI18n HOC completely removes the webpack loader? You also need...
Can you provide more info about the error? The only peerDependencies of this library is `react` and `next`: https://github.com/vinissimus/next-translate/blob/master/package.json#L89-L91
@josegutierro @haydencleary I did a PR to include this inside the `useTranslation` hook, this way you do not need a workaround.
@josegutierro @haydencleary already pre-released on [1.0.6-canary.3](https://github.com/vinissimus/next-translate/releases/tag/1.0.6-canary.3) 😊 If you can confirm that it works, that would be great
> Hey @aralroca thanks for the PR! I just tested and it doesn't seem to work if I simply replace the work around 😕 It _does_ work however if I...
> Also I noticed you import useMemo in `src/I18nProvider.tsx` but it isn't used. This was a mistake, this import can be removed!