4f604af744
refs https://ghost.slack.com/archives/C02G9E68C/p1692784819620269 refs https://github.com/TryGhost/Product/issues/3504 - Somehow, when using i18n in TypeScript, the require will put some of the keys into 'default' and not into the root. Mainly all keys that have a space in them. Couldn't find any documentation about this - The solution is to also add 'default' to the keys that are being used in the code This change also fixes the translate script (wasn't updated for updated paths), includes the missing translations, and already adds comments to lookup translation strings |
||
---|---|---|
.. | ||
lib | ||
locales | ||
test | ||
.eslintrc.js | ||
generate-context.js | ||
i18next-parser.config.js | ||
index.js | ||
package.json | ||
README.md |
i18n
i18n translations for Ghost
Develop
This is a monorepo package.
Follow the instructions for the top-level repo.
git clone
this repo &cd
into it as usual- Run
yarn
to install top-level dependencies.
Test
yarn lint
run just eslintyarn test
run lint and tests