Comments (5)
Hi! Looks like useRouter
returns null because it's coming from Next.js. You can take a look at our tests here, where we mock useRouter
:
from next-international.
Yeah it might be a good idea to add it in the example section of the README. Feel free to send a PR if you want :)
from next-international.
Hi! Looks like
useRouter
returns null because it's coming from Next.js. You can take a look at our tests here, where we mockuseRouter
:
Great, thanks for the quick answer. Maybe I can add this to the readme for anyone else struggling with similar issues. :)
from next-international.
Done. #37 . Hope it's properly explained like that.
from next-international.
Closing this issue since we merged #37, thanks again!
from next-international.
Related Issues (18)
- Lot of potential but too strongly bounded by nextjs. HOT 6
- Nested object scopes HOT 6
- Usage with SSR (getServerSideProps) instead of SSG? HOT 3
- [RFC] Add `useScopedT` hook HOT 10
- [RFC]: CLI Tool that transforms the language TS files to JSON and vice versa HOT 5
- error - SerializableError: Error serializing `.locale["pages.past.date"]` returned from `getServerSideProps` in "/". HOT 10
- Object spreading locales breaks variable inference HOT 2
- Error: Uncaught [Error: `useI18n` must be used inside `I18nProvider`] HOT 8
- i18n support is not compatible with next export HOT 5
- Package incompatible with Next.JS 13 `/app` directory HOT 7
- pass t useI18n hook inside a another component HOT 2
- [BUG] Interpolation with variables does not work HOT 4
- Get current locale HOT 2
- Force consistency between all locale files HOT 2
- No matching version found for international-types@* inside the workspace HOT 3
- SSR Not working HOT 2
- Export `Locale` types to create custom `Locale` interface HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from next-international.