Ghost/ghost/i18n
Simon Backx 4f604af744 🐛 Fixed translations with spaces missing in signup-form
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
2023-08-23 15:11:41 +02:00
..
lib 🐛 Fixed translations with spaces missing in signup-form 2023-08-23 15:11:41 +02:00
locales 🐛 Fixed translations with spaces missing in signup-form 2023-08-23 15:11:41 +02:00
test 🐛 Fixed translations with spaces missing in signup-form 2023-08-23 15:11:41 +02:00
.eslintrc.js Added i18n package 2023-01-18 13:54:14 +01:00
generate-context.js Added locales/context.json to help with translating 2023-03-23 16:29:59 +01:00
i18next-parser.config.js Added support for namespaces to i18n package 2023-03-01 10:24:08 +01:00
index.js Added i18n package 2023-01-18 13:54:14 +01:00
package.json 🐛 Fixed translations with spaces missing in signup-form 2023-08-23 15:11:41 +02:00
README.md Added i18n package 2023-01-18 13:54:14 +01:00

i18n

i18n translations for Ghost

Develop

This is a monorepo package.

Follow the instructions for the top-level repo.

  1. git clone this repo & cd into it as usual
  2. Run yarn to install top-level dependencies.

Test

  • yarn lint run just eslint
  • yarn test run lint and tests