codecombat/app/locale/locale.coffee

73 lines
5.2 KiB
CoffeeScript
Raw Normal View History

2014-01-03 13:32:13 -05:00
# List of the BCP-47 language codes
# https://www.iana.org/assignments/language-subtag-registry/language-subtag-registry
# Sort according to language popularity on Internet
# http://en.wikipedia.org/wiki/Languages_used_on_the_Internet
module.exports =
update: ->
localesLoaded = (s for s in window.require.list() when _.string.startsWith(s, 'locale/'))
for path in localesLoaded
continue if path is 'locale/locale'
code = path.replace('locale/', '')
@[code] = require(path)
'en': { nativeDescription: 'English', englishDescription: 'English' }
'en-US': { nativeDescription: 'English (US)', englishDescription: 'English (US)' }
'en-GB': { nativeDescription: 'English (UK)', englishDescription: 'English (UK)' }
'zh-HANS': { nativeDescription: '简体中文', englishDescription: 'Chinese (Simplified)' }
'zh-HANT': { nativeDescription: '繁體中文', englishDescription: 'Chinese (Traditional)' }
'ru': { nativeDescription: 'русский', englishDescription: 'Russian' }
'es-ES': { nativeDescription: 'español (ES)', englishDescription: 'Spanish (Spain)' }
'es-419': { nativeDescription: 'español (América Latina)', englishDescription: 'Spanish (Latin America)' }
'fr': { nativeDescription: 'français', englishDescription: 'French' }
# Begin alphabetized list: https://github.com/codecombat/codecombat/issues/2329#issuecomment-74630546
'ar': { nativeDescription: 'العربية', englishDescription: 'Arabic' }
'bg': { nativeDescription: 'български език', englishDescription: 'Bulgarian' }
'ca': { nativeDescription: 'Català', englishDescription: 'Catalan' }
'cs': { nativeDescription: 'čeština', englishDescription: 'Czech' }
'da': { nativeDescription: 'dansk', englishDescription: 'Danish' }
'de-DE': { nativeDescription: 'Deutsch (Deutschland)', englishDescription: 'German (Germany)' }
'de-AT': { nativeDescription: 'Deutsch (Österreich)', englishDescription: 'German (Austria)' }
'de-CH': { nativeDescription: 'Deutsch (Schweiz)', englishDescription: 'German (Switzerland)' }
2015-10-28 09:25:12 -04:00
'et': { nativeDescription: 'Eesti', englishDescription: 'Estonian' }
'el': { nativeDescription: 'Ελληνικά', englishDescription: 'Greek' }
2015-03-19 11:36:35 -04:00
'eo': { nativeDescription: 'Esperanto', englishDescription: 'Esperanto' }
'fa': { nativeDescription: 'فارسی', englishDescription: 'Persian' }
'gl': { nativeDescription: 'Galego', englishDescription: 'Galician' }
'ko': { nativeDescription: '한국어', englishDescription: 'Korean' }
2016-08-08 16:10:28 -04:00
'haw': { nativeDescription: 'ʻŌlelo Hawaiʻi', englishDescription: 'Hawaiian' }
'he': { nativeDescription: 'עברית', englishDescription: 'Hebrew' }
2016-07-29 15:20:24 -04:00
'hr': { nativeDescription: 'hrvatski jezik', englishDescription: 'Croatian' }
'hu': { nativeDescription: 'magyar', englishDescription: 'Hungarian' }
2016-08-08 16:10:28 -04:00
'id': { nativeDescription: 'Bahasa Indonesia', englishDescription: 'Indonesian' }
'it': { nativeDescription: 'Italiano', englishDescription: 'Italian' }
'lt': { nativeDescription: 'lietuvių kalba', englishDescription: 'Lithuanian' }
'mi': { nativeDescription: 'te reo Māori', englishDescription: 'Māori' }
'mk-MK': { nativeDescription: 'Македонски', englishDescription: 'Macedonian' }
'hi': { nativeDescription: 'मानक हिन्दी', englishDescription: 'Hindi' }
'ms': { nativeDescription: 'Bahasa Melayu', englishDescription: 'Bahasa Malaysia' }
2015-08-02 10:42:27 -04:00
'my': { nativeDescription: 'မြန်မာစကား', englishDescription: 'Myanmar language' }
'nl-BE': { nativeDescription: 'Nederlands (België)', englishDescription: 'Dutch (Belgium)' }
'nl-NL': { nativeDescription: 'Nederlands (Nederland)', englishDescription: 'Dutch (Netherlands)' }
'ja': { nativeDescription: '日本語', englishDescription: 'Japanese' }
'nb': { nativeDescription: 'Norsk Bokmål', englishDescription: 'Norwegian (Bokmål)' }
'nn': { nativeDescription: 'Norsk Nynorsk', englishDescription: 'Norwegian (Nynorsk)' }
2015-05-25 19:00:32 -04:00
'uz': { nativeDescription: "O'zbekcha", englishDescription: 'Uzbek' }
'pl': { nativeDescription: 'język polski', englishDescription: 'Polish' }
'pt-PT': { nativeDescription: 'Português (Portugal)', englishDescription: 'Portuguese (Portugal)' }
2016-09-09 10:01:58 -04:00
'pt-BR': { nativeDescription: 'Português (Brasil)', englishDescription: 'Portuguese (Brazil)' }
'ro': { nativeDescription: 'limba română', englishDescription: 'Romanian' }
'sr': { nativeDescription: 'српски', englishDescription: 'Serbian' }
'sk': { nativeDescription: 'slovenčina', englishDescription: 'Slovak' }
'sl': { nativeDescription: 'slovenščina', englishDescription: 'Slovene' }
'fi': { nativeDescription: 'suomi', englishDescription: 'Finnish' }
'sv': { nativeDescription: 'Svenska', englishDescription: 'Swedish' }
'th': { nativeDescription: 'ไทย', englishDescription: 'Thai' }
'tr': { nativeDescription: 'Türkçe', englishDescription: 'Turkish' }
'uk': { nativeDescription: 'українська мова', englishDescription: 'Ukrainian' }
'ur': { nativeDescription: 'اُردُو', englishDescription: 'Urdu' }
'vi': { nativeDescription: 'Tiếng Việt', englishDescription: 'Vietnamese' }
'zh-WUU-HANS': { nativeDescription: '吴语', englishDescription: 'Wuu (Simplified)' }
'zh-WUU-HANT': { nativeDescription: '吳語', englishDescription: 'Wuu (Traditional)' }