Add Welsh, Swedish and Turkish

This commit is contained in:
Eric Rosenbaum 2019-02-07 17:16:49 -05:00
parent f33e07132e
commit 3996cc0c6b

View file

@ -162,6 +162,10 @@ class Scratch3Text2SpeechBlocks {
*/ */
get LANGUAGE_INFO () { get LANGUAGE_INFO () {
return { return {
'cy': {
name: 'Welsh',
singleGender: true
},
'da': { 'da': {
name: 'Danish' name: 'Danish'
}, },
@ -213,6 +217,14 @@ class Scratch3Text2SpeechBlocks {
'es': { 'es': {
name: 'Spanish (European)' name: 'Spanish (European)'
}, },
'sv': {
name: 'Swedish',
singleGender: true
},
'tr': {
name: 'Turkish',
singleGender: true
},
'es-419': { 'es-419': {
name: 'Spanish (Latin American)' name: 'Spanish (Latin American)'
}, },
@ -235,6 +247,7 @@ class Scratch3Text2SpeechBlocks {
*/ */
localeToPolly (locale) { localeToPolly (locale) {
const pollyLocales = { const pollyLocales = {
'cy': 'cy-GB', // Welsh
'da': 'da-DK', // Danish 'da': 'da-DK', // Danish
'nl': 'nl-NL', // Dutch 'nl': 'nl-NL', // Dutch
'en': 'en-US', // English 'en': 'en-US', // English
@ -252,6 +265,8 @@ class Scratch3Text2SpeechBlocks {
'ru': 'ru-RU', // Russian 'ru': 'ru-RU', // Russian
'es': 'es-ES', // Spanish (European) 'es': 'es-ES', // Spanish (European)
'es-419': 'es-US', // Spanish (Latin American) 'es-419': 'es-US', // Spanish (Latin American)
'sv': 'sv-SE', // Swedish
'tr': 'tr-TR', // Turkish
'zh-cn': 'cmn-CN', // Chinese (simplified) -> Mandarin 'zh-cn': 'cmn-CN', // Chinese (simplified) -> Mandarin
'zh-tw': 'cmn-CN' // Chinese (traditional) -> Mandarin 'zh-tw': 'cmn-CN' // Chinese (traditional) -> Mandarin
}; };