Support for i18n, config and example of use.
Adds a setupProxy config: The package i18next-http-backend and the proxy config does not work together. The proxy setup hijacks the loading of the translation files. Adds a setupProxy.js to only proxy /api. Adds a simple prettier config
Showing
- frontend/package-lock.json 114 additions, 22064 deletionsfrontend/package-lock.json
- frontend/package.json 4 additions, 1 deletionfrontend/package.json
- frontend/public/locales/en/common.json 9 additions, 0 deletionsfrontend/public/locales/en/common.json
- frontend/public/locales/en/footer.json 3 additions, 0 deletionsfrontend/public/locales/en/footer.json
- frontend/public/locales/nb/common.json 9 additions, 0 deletionsfrontend/public/locales/nb/common.json
- frontend/public/locales/nb/footer.json 3 additions, 0 deletionsfrontend/public/locales/nb/footer.json
- frontend/public/locales/nn/common.json 9 additions, 0 deletionsfrontend/public/locales/nn/common.json
- frontend/public/locales/nn/footer.json 3 additions, 0 deletionsfrontend/public/locales/nn/footer.json
- frontend/src/App.tsx 30 additions, 15 deletionsfrontend/src/App.tsx
- frontend/src/i18n.ts 28 additions, 0 deletionsfrontend/src/i18n.ts
- frontend/src/setupProxy.js 11 additions, 0 deletionsfrontend/src/setupProxy.js
Loading
Please register or sign in to comment