When adding new content to "translations.json", the file should be converted to json with 'i18n-csv2json-cli' and commited/pushed.
# from "api" folder
../node_modules/i18n-csv2json-cli/bin/main.js --from locales/translations.csv --to locales/json --format
In production
, environment variables should be set before launching the server. In other node environments, env
variables which are undefined will be read from the .env
file.
{"debug", "info", "warn", "error", "critical"}
. If missing, determined based on the NODE_ENV env variable.