mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2025-01-11 10:39:56 -05:00
Add Welsh, Swedish and Turkish
This commit is contained in:
parent
f33e07132e
commit
3996cc0c6b
1 changed files with 15 additions and 0 deletions
|
@ -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
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue