Gary Lai
ae7311e74f
Added Traditional Chinese translations ( #16786 )
...
refs https://github.com/TryGhost/Team/issues/2795
2023-05-31 09:52:42 +02:00
Daniel Lockyer
7d4a09a6bb
Added language names to list of supported locales
...
refs https://github.com/TryGhost/Team/issues/2795
- this helps to understand what languages are already supported,
especially when the locale code isn't obvious
2023-05-30 15:32:52 +02:00
Daniel Lockyer
c604255ace
Updated list of supported locales
...
refs https://github.com/TryGhost/Team/issues/2795
- adds in Finnish and Albanian locales as they were added via merged PR earlier
2023-05-30 12:07:01 +02:00
Daniel Lockyer
1811f96472
Updated list of locales
...
refs https://github.com/TryGhost/Team/issues/2795
- adds Korean, which I just merged
2023-05-25 10:00:27 +02:00
Daniel Lockyer
09e11c6a29
Updated list of locales
...
refs https://github.com/TryGhost/Team/issues/2795
- adds Romanian and Serbian, which I merged earlier today
2023-05-24 16:13:14 +02:00
Daniel Lockyer
bed7479cc2
Fixed loading pt-br translations
...
fixes https://github.com/TryGhost/Ghost/issues/16805
* turns out i18next requires the country portal of the locale to be
capitalized [1]
* this resolves that and moves the files to the correct casing
[1]: https://github.com/i18next/i18next/issues/1467#issuecomment-646305827
2023-05-24 10:27:49 +02:00
Daniel Lockyer
3ae29567d4
Added missing locales
...
- forgot to do this after merging the PRs
2023-05-12 15:39:28 +02:00
Daniel Lockyer
b0483d1ef3
Updated supported locales
2023-05-05 13:24:41 +02:00
Naz
d2f4c097a0
Added Ukrainian locale for Portal
...
refs https://github.com/TryGhost/Team/issues/2795
- Ukrainian translation - used informal form
2023-04-21 17:26:51 +02:00
Daniel Lockyer
cebad9ae0c
Added support for new locales
...
- Danish and Chinese as per recent pull requests
2023-04-14 08:14:10 +01:00
Kasun Chanuka Fernando
427337633b
Added Sinhalese locale ( #16595 )
...
refs https://github.com/TryGhost/Team/issues/2795
2023-04-14 07:47:10 +01:00
Daniel Lockyer
7435b18c85
Added support for new locales
...
refs https://github.com/TryGhost/Team/issues/2795
- PRs for these locales were merged this morning so we need this to
enable the languages
2023-04-10 14:05:33 +02:00
Daniel Lockyer
a9ad931c9f
Updated list of supported locales
...
refs https://github.com/TryGhost/Team/issues/2795
- stemming from recent PR merges
2023-04-06 19:43:10 +02:00
John O'Nolan
5b1bf3ae0d
Added support for Polish and Spanish translations
2023-04-02 10:47:40 -04:00
John O'Nolan
1ce416ad00
Added support for Czech translations
2023-04-02 10:42:22 -04:00
Ronald Langeveld
cbe97ad792
Added Afrikaans locale to Portal ( #16464 )
...
refs https://github.com/TryGhost/Team/issues/2795
WIP - getting some additional eyes on it 👨🏼🏫 .
---------
Co-authored-by: John O'Nolan <john@ghost.org>
2023-03-30 10:01:29 -04:00
Sodbileg Gansukh
83795edcad
Added Mongolian locale to Portal ( #16465 )
...
no issues
Co-authored-by: John O'Nolan <john@ghost.org>
2023-03-30 09:59:18 -04:00
Aileen Booker
3f23fefaf5
Added German locale for Portal ( #16469 )
...
refs https://github.com/TryGhost/Team/issues/2795
- Used informal form ('du')
Happy for feedback!!!
2023-03-30 09:58:01 -04:00
Peter Zimon
79bb55a737
Added Hungarian locale for Portal ( #16488 )
...
Hungarian translation for email contents and Portal.
2023-03-30 09:57:09 -04:00
Sagar Gupta
7f92014c58
Added French (fr) translations
...
refs https://github.com/TryGhost/Team/issues/2795
- Used informal form ("tu")
2023-03-22 09:24:03 +01:00
Daniel Lockyer
eb5ed7dda8
Reformatted SUPPORTED_LOCALES
array to new lines
...
refs https://github.com/TryGhost/Team/issues/2795
- this helps reduce conflicts when multiple PRs are coming in to add new
languages
- I'd also like to enforce alphabetically sorted keys but I can't figure
out the magic eslint incantation yet
2023-03-22 08:50:29 +01:00
Daniel Lockyer
21ea426794
Added i18n service to Ghost core
...
refs https://github.com/TryGhost/Ghost/issues/15502
- this adds the scaffolding for enabling i18n translations within Ghost
core
- also adds `yarn translate:ghost` as an option to the `i18n` package
- the locale is currently hardcoded to `en` so we don't utilize the
translations until we're ready
2023-03-16 14:50:50 +01:00
Daniel Lockyer
0273ba2066
Disabled i18next debug mode in development
...
- I didn't realise how annoying this would be so this commit disables it
2023-03-16 14:06:38 +01:00
Daniel Lockyer
f717c093e7
Fixed linting
2023-03-01 10:30:18 +01:00
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
Daniel Lockyer
2804445d41
Fixed returning key when value is empty string
...
refs https://github.com/TryGhost/Ghost/issues/15502
- in the event the value is an empty string, we want to return the key
- this config option enables that
2023-02-27 13:18: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
fb030353fe
Moved i18n translations into JSON files
...
refs https://github.com/TryGhost/Ghost/issues/15502
- plain JSON files are cleaner and less overwhelming than boilerplate JS
files, and given they're going to be automatically generated, we
probably won't be able to support comments anyway
2023-01-18 17:03:22 +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