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
This commit is contained in:
Daniel Lockyer 2023-05-30 15:31:09 +02:00
parent 2387718266
commit 7d4a09a6bb
No known key found for this signature in database

View File

@ -1,39 +1,39 @@
const i18next = require('i18next');
const SUPPORTED_LOCALES = [
'af',
'bg',
'ca',
'cs',
'da',
'de',
'en',
'eo',
'es',
'fi',
'fr',
'hu',
'id',
'it',
'ko',
'mn',
'nl',
'no',
'pl',
'pt',
'pt-BR',
'ro',
'ru',
'si',
'sl',
'sq',
'sr',
'sv',
'tr',
'uk',
'uz',
'vi',
'zh'
'af', // Afrikaans
'bg', // Bulgarian
'ca', // Catalan
'cs', // Czech
'da', // Danish
'de', // German
'en', // English
'eo', // Esperanto
'es', // Spanish
'fi', // Finnish
'fr', // French
'hu', // Hungarian
'id', // Indonesian
'it', // Italian
'ko', // Korean
'mn', // Mongolian
'nl', // Dutch
'no', // Norwegian
'pl', // Polish
'pt', // Portuguese
'pt-BR', // Portuguese (Brazil)
'ro', // Romanian
'ru', // Russian
'si', // Sinhala
'sl', // Slovenian
'sq', // Albanian
'sr', // Serbian
'sv', // Swedish
'tr', // Turkish
'uk', // Ukrainian
'uz', // Uzbek
'vi', // Vietnamese
'zh' // Chinese
];
/**