Chatwoot/config/initializers/languages.rb
Sojan Jose bab9d663d2
Feature: API for updating account settings (#645)
* Feature: API for updating account settings

- API to update account locale
- API to update account name
- API to show account info
2020-03-29 12:16:31 +05:30

18 lines
866 B
Ruby

# Based on ISO_639-3 Codes. ref: https://en.wikipedia.org/wiki/List_of_ISO_639-2_codes
# This Hash is used in account model, so do not change the index for existing languages
LANGUAGES_CONFIG = {
0 => { name: 'English', iso_639_3_code: 'eng' },
1 => { name: 'Arabic', iso_639_3_code: 'ara' },
2 => { name: 'Dutch', iso_639_3_code: 'nld' },
3 => { name: 'French', iso_639_3_code: 'fra' },
4 => { name: 'German', iso_639_3_code: 'deu' },
5 => { name: 'Hindi', iso_639_3_code: 'hin' },
6 => { name: 'Italian', iso_639_3_code: 'ita' },
7 => { name: 'Japanese', iso_639_3_code: 'jpn' },
8 => { name: 'Korean', iso_639_3_code: 'kor' },
9 => { name: 'Portugues', iso_639_3_code: 'por' },
10 => { name: 'Russian', iso_639_3_code: 'rus' },
11 => { name: 'Chinese', iso_639_3_code: 'zho' },
12 => { name: 'Spanish', iso_639_3_code: 'spa' }
}.freeze