generated from devx-agency-deprecated/devx-next-js-starterpack
-
Notifications
You must be signed in to change notification settings - Fork 1
Translations
Tomasz Pilch edited this page Dec 10, 2020
·
3 revisions
Default translations are in /public/static/defaultLocales
, this folder contains default namespaces and texts for initial functionality and default modules.
If you want enable custom translations, you must:
- install
@bheui/server-functions
- create custom
server.js
- there you place
processLocale()
afterprepare()
from nextJS (const processLocale = require('@bheui/server-functions/lib/locale/process-locale')
) - and that's all
locales are downloaded when app starts (running server required)
- install
@bhe/core-modules
min version1.2.1
- in the root of the app, create folder
locales
-
locales
folder contains folders that's symbolize languages (cs
,en
) -
cs
,en
folders contains.json
files => namespaces