Skip to content

Commit

Permalink
Update i18n.js
Browse files Browse the repository at this point in the history
Add Ukrainian language and podcast region
  • Loading branch information
cor-bee authored Mar 19, 2024
1 parent 1d7434c commit b0a9bed
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions client/plugins/i18n.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ const languageCodeMap = {
'pt-br': { label: 'Português (Brasil)', dateFnsLocale: 'ptBR' },
'ru': { label: 'Русский', dateFnsLocale: 'ru' },
'sv': { label: 'Svenska', dateFnsLocale: 'sv' },
'uk': { label: 'Українська', dateFnsLocale: 'uk' },
'vi-vn': { label: 'Tiếng Việt', dateFnsLocale: 'vi' },
'zh-cn': { label: '简体中文 (Simplified Chinese)', dateFnsLocale: 'zhCN' },
'zh-tw': { label: '正體中文 (Traditional Chinese)', dateFnsLocale: 'zhTW' }
Expand All @@ -36,6 +37,7 @@ Vue.prototype.$languageCodeOptions = Object.keys(languageCodeMap).map(code => {

// iTunes search API uses ISO 3166 country codes: https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2
const podcastSearchRegionMap = {
'ua': { label: 'Україна' },
'us': { label: 'United States' },
'cn': { label: '中国' }
}
Expand Down

0 comments on commit b0a9bed

Please sign in to comment.