Comments (1)
I found out relative path isn't relevant for client loadPath so I updated my config to:
i18nextServer: {
backend: {
- loadPath: './src/locales/{{lng}}/{{ns}}.json',
+ loadPath: './public/locales/{{lng}}/{{ns}}.json',
},
},
i18nextClient: {
backend: {
- loadPath: './src/locales/{{lng}}/{{ns}}.json',
+ loadPath: '/locales/{{lng}}/{{ns}}.json',
},
},
A mention in the docs might be useful
from astro-i18next.
Related Issues (20)
- Localizing paths in React components HOT 3
- Trailing Slash Setting Ignored HOT 4
- Package not loading on client-side when there is a domain set? HOT 3
- Astro 2 compatibility HOT 1
- 'AstroI18nextConfig' is not exported by node_modules/astro-i18next/src/types.ts HOT 2
- Is astro-i18next caching translations? HOT 1
- Lib breaking build HOT 2
- working with md files HOT 4
- Feature request: A property to set the asset path HOT 4
- The plugin thinks the locale is set to `undefined` for `localizePath()` HOT 11
- Problem with localizePath with routes and multiple languages.
- Doesn't work with nested routes? HOT 11
- Node fs 600: no such file or directory, open './src/pages/ogs\index.astro' HOT 1
- astro-i18next not working on 404 error page HOT 2
- Generate folder for default language HOT 5
- Path mismatch if Astro runs in docker
- No Build - AstroI18nextConfig is not exported by node_modules/astro-i18next/src/types.ts HOT 1
- How to use Locize?
- localizePath is not able to localize urls with a dynamic path HOT 2
- Anyone tried to make it work within SolidJS UI Components? HOT 1
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 astro-i18next.