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
generate-context.js
i18next-parser.config.js
index.js
package.json 🐛 Fixed translations with spaces missing in signup-form 2023-08-23 15:11:41 +02:00
README.md

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