Daniel Lockyer
6d8ca23625
Added support for namespaces to i18n package
...
refs https://github.com/TryGhost/Ghost/issues/15502
- this adds support for namespaces to the i18n package so we can
separate translations for different packages
2023-03-01 10:24:08 +01:00
renovate[bot]
b9c2af5d4c
Update dependency i18next-parser to v7.7.0
2023-02-21 09:38:04 +01:00
Daniel Lockyer
badbdbbedd
Renamed yarn translate:portal
to yarn translate:generate
...
refs https://github.com/TryGhost/Ghost/issues/15502
- needed to add the `i18n` tests so we don't lose the "Hello" test I
wrote, and keeping everything under one command is easier
2023-02-20 16:55:54 +01:00
renovate[bot]
6703a0e91c
Update dependency i18next to v22.4.10
2023-02-17 16:06:34 +00:00
renovate[bot]
cf7ecb492c
Update dependency c8 to v7.13.0
2023-02-16 22:15:50 +00:00
renovate[bot]
3737788d75
Update dependency i18next to v22.4.9
2023-01-19 17:58:16 +00:00
Daniel Lockyer
1f32a7be8a
Added CI test to ensure i18n strings are extracted out
...
refs https://github.com/TryGhost/Ghost/issues/15502
- this will test if we have strings that aren't present in the JSON
files in CI, so we don't miss out on translations
2023-01-19 16:20:55 +01:00
Daniel Lockyer
2cf161168b
Added yarn translate:portal
command
...
refs https://github.com/TryGhost/Ghost/issues/15502
- the amazing `i18next-parser` dependency will extract our translated
strings from Portal and dump them into locale files, so we never have
to add them manually
2023-01-18 18:23:53 +01:00
Daniel Lockyer
0d9268ad86
Added i18n package
...
refs https://github.com/TryGhost/Ghost/issues/15502
- this is an early implementation of an i18n provider by
exporting an instance of `i18next`
- there's a lot more to be done here but baby steps :)
2023-01-18 13:54:14 +01:00