Skip to content

Commit

Permalink
fix: update available languages and API endpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
dessant committed Jan 29, 2020
1 parent bb2bff9 commit 182a0aa
Show file tree
Hide file tree
Showing 4 changed files with 136 additions and 188 deletions.
178 changes: 59 additions & 119 deletions src/_locales/en/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,11 @@
"description": "Title of the option."
},

"optionValue_ibmSpeechApiLoc_london": {
"message": "London",
"description": "Value of the option."
},

"optionValue_ibmSpeechApiLoc_frankfurt": {
"message": "Frankfurt",
"description": "Value of the option."
Expand Down Expand Up @@ -79,6 +84,56 @@
"description": "Title of the option."
},

"optionValue_microsoftSpeechApiLoc_eastAu": {
"message": "Australia East",
"description": "Value of the option."
},

"optionValue_microsoftSpeechApiLoc_centralCa": {
"message": "Canada Central",
"description": "Value of the option."
},

"optionValue_microsoftSpeechApiLoc_centralUs": {
"message": "Central US",
"description": "Value of the option."
},

"optionValue_microsoftSpeechApiLoc_centralFr": {
"message": "France Central",
"description": "Value of the option."
},

"optionValue_microsoftSpeechApiLoc_centralIn": {
"message": "India Central",
"description": "Value of the option."
},

"optionValue_microsoftSpeechApiLoc_eastJp": {
"message": "Japan East",
"description": "Value of the option."
},

"optionValue_microsoftSpeechApiLoc_centralKr": {
"message": "Korea Central",
"description": "Value of the option."
},

"optionValue_microsoftSpeechApiLoc_northCentralUs": {
"message": "North Central US",
"description": "Value of the option."
},

"optionValue_microsoftSpeechApiLoc_southCentralUs": {
"message": "South Central US",
"description": "Value of the option."
},

"optionValue_microsoftSpeechApiLoc_southUk": {
"message": "UK South",
"description": "Value of the option."
},

"optionValue_microsoftSpeechApiLoc_eastUs": {
"message": "East US",
"description": "Value of the option."
Expand Down Expand Up @@ -149,31 +204,16 @@
"description": "Title of the option."
},

"optionValue_witSpeechApiLang_afrikaans": {
"message": "Afrikaans",
"description": "Value of the option."
},

"optionValue_witSpeechApiLang_arabic": {
"message": "Arabic",
"description": "Value of the option."
},

"optionValue_witSpeechApiLang_azerbaijani": {
"message": "Azerbaijani",
"description": "Value of the option."
},

"optionValue_witSpeechApiLang_bengali": {
"message": "Bengali",
"description": "Value of the option."
},

"optionValue_witSpeechApiLang_bulgarian": {
"message": "Bulgarian",
"description": "Value of the option."
},

"optionValue_witSpeechApiLang_catalan": {
"message": "Catalan",
"description": "Value of the option."
Expand All @@ -184,21 +224,6 @@
"description": "Value of the option."
},

"optionValue_witSpeechApiLang_croatian": {
"message": "Croatian",
"description": "Value of the option."
},

"optionValue_witSpeechApiLang_czech": {
"message": "Czech",
"description": "Value of the option."
},

"optionValue_witSpeechApiLang_danish": {
"message": "Danish",
"description": "Value of the option."
},

"optionValue_witSpeechApiLang_dutch": {
"message": "Dutch",
"description": "Value of the option."
Expand All @@ -209,11 +234,6 @@
"description": "Value of the option."
},

"optionValue_witSpeechApiLang_estonian": {
"message": "Estonian",
"description": "Value of the option."
},

"optionValue_witSpeechApiLang_finnish": {
"message": "Finnish",
"description": "Value of the option."
Expand All @@ -224,41 +244,16 @@
"description": "Value of the option."
},

"optionValue_witSpeechApiLang_georgian": {
"message": "Georgian",
"description": "Value of the option."
},

"optionValue_witSpeechApiLang_german": {
"message": "German",
"description": "Value of the option."
},

"optionValue_witSpeechApiLang_greek": {
"message": "Greek",
"description": "Value of the option."
},

"optionValue_witSpeechApiLang_hebrew": {
"message": "Hebrew",
"description": "Value of the option."
},

"optionValue_witSpeechApiLang_hindi": {
"message": "Hindi",
"description": "Value of the option."
},

"optionValue_witSpeechApiLang_hungarian": {
"message": "Hungarian",
"description": "Value of the option."
},

"optionValue_witSpeechApiLang_icelandic": {
"message": "Icelandic",
"description": "Value of the option."
},

"optionValue_witSpeechApiLang_indonesian": {
"message": "Indonesian",
"description": "Value of the option."
Expand All @@ -284,38 +279,13 @@
"description": "Value of the option."
},

"optionValue_witSpeechApiLang_laothian": {
"message": "Laothian",
"description": "Value of the option."
},

"optionValue_witSpeechApiLang_latvian": {
"message": "Latvian",
"description": "Value of the option."
},

"optionValue_witSpeechApiLang_lithuanian": {
"message": "Lithuanian",
"description": "Value of the option."
},

"optionValue_witSpeechApiLang_malay": {
"message": "Malay",
"description": "Value of the option."
},

"optionValue_witSpeechApiLang_mongolian": {
"message": "Mongolian",
"description": "Value of the option."
},

"optionValue_witSpeechApiLang_norwegian": {
"message": "Norwegian",
"description": "Value of the option."
},

"optionValue_witSpeechApiLang_persian": {
"message": "Persian",
"optionValue_witSpeechApiLang_malayalam": {
"message": "Malayalam",
"description": "Value of the option."
},

Expand All @@ -329,28 +299,13 @@
"description": "Value of the option."
},

"optionValue_witSpeechApiLang_romanian": {
"message": "Romanian",
"description": "Value of the option."
},

"optionValue_witSpeechApiLang_russian": {
"message": "Russian",
"description": "Value of the option."
},

"optionValue_witSpeechApiLang_serbian": {
"message": "Serbian",
"description": "Value of the option."
},

"optionValue_witSpeechApiLang_slovak": {
"message": "Slovak",
"description": "Value of the option."
},

"optionValue_witSpeechApiLang_slovenian": {
"message": "Slovenian",
"optionValue_witSpeechApiLang_sinhala": {
"message": "Sinhala",
"description": "Value of the option."
},

Expand All @@ -359,11 +314,6 @@
"description": "Value of the option."
},

"optionValue_witSpeechApiLang_swahili": {
"message": "Swahili",
"description": "Value of the option."
},

"optionValue_witSpeechApiLang_swedish": {
"message": "Swedish",
"description": "Value of the option."
Expand All @@ -389,11 +339,6 @@
"description": "Value of the option."
},

"optionValue_witSpeechApiLang_ukrainian": {
"message": "Ukrainian",
"description": "Value of the option."
},

"optionValue_witSpeechApiLang_urdu": {
"message": "Urdu",
"description": "Value of the option."
Expand All @@ -404,11 +349,6 @@
"description": "Value of the option."
},

"optionValue_witSpeechApiLang_zulu": {
"message": "Zulu",
"description": "Value of the option."
},

"inputLabel_apiKey": {
"message": "API key",
"description": "Label of the input."
Expand Down
11 changes: 11 additions & 0 deletions src/options/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -223,13 +223,24 @@ export default {
'microsoftSpeechApi'
],
ibmSpeechApiLoc: [
'london',
'frankfurt',
'dallas',
'washington',
'sydney',
'tokyo'
],
microsoftSpeechApiLoc: [
'eastAu',
'centralCa',
'centralUs',
'centralFr',
'centralIn',
'eastJp',
'centralKr',
'northCentralUs',
'southCentralUs',
'southUk',
'eastUs',
'eastUs2',
'westUs',
Expand Down
29 changes: 3 additions & 26 deletions src/utils/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,58 +3,35 @@ const targetEnv = process.env.TARGET_ENV;
const clientAppVersion = '0.2.0';

const witApiKeys = {
afrikaans: 'T3T7A2WS3TQJVBB4L4CTK2EEUI6N7YGZ',
arabic: 'AD6RLFYBWRGGJD76SWKALZMUFVGMVCTB',
azerbaijani: 'RMSJ2FEOW4KJDYRF5LNZBIWBRZDW4ZB7',
bengali: 'ACETQ4IVS5ITSUTSWBETY2QZKBJVIQAI',
bulgarian: 'PILJVNIC5Y2EBHB5LFBCFCVRMJB6YAHT',
catalan: 'YBAZZV6ITGFD3C2QX7CANYQPMGUOI7RK',
chinese: 'KBBALJMRKYDJJDMC4NJ32VWCBKFJFIIU',
croatian: 'WNMTNHQVRCIO7LWM3KJ7KSMELXJ7LVHI',
czech: 'LRLFTX2Q66Y6YQX2RA6SN2ULGJJ4ABHY',
danish: 'XNXWQBMCXS4CPGD5XS6J6CSIPG2NLMIO',
dutch: 'T43TEUNW4HDQFNUTIA3EYTTD4A22AS4H',
english: 'NVYD6ZUJMC26US5XS2ZJJ32EDZZ654TD',
estonian: 'BFR5DZRBITRYUPEUAEC5NBAYH32TZWFW',
finnish: '3GOWLMYD7DUY72XTPJW6QTVZSK2QEAPT',
french: 'JLNITTO2D4KMEOGQ6MTSN634ADK62VZ7',
georgian: 'MN4WRTLFDM2AESM6HXUF2KXQACTNC2CJ',
german: 'LPVVXWRBFTVBOOHZAEJC3QRM6E3UMD7I',
greek: 'VRQCDIURC3D22ZTYPEJAHGZW2PG5MY5T',
hebrew: 'IFNGQOZ63NDYAXHMJTOFGDWUFXTU3XZH',
hindi: 'GZY4V5WN75QHO4Q5PMCU5AIDKQZLKP4L',
hungarian: 'U22W2AWXWQHWUUGTJRJZYAMYSSPX44TR',
icelandic: 'KD3DQ2XPQJM4VBYUJPPOPHZYOUQZ55JL',
indonesian: 'NBKNPYO6ZTVSSTH2AT3H5DM7OUOIAN3F',
italian: 'JNSYW453QWIXNR3TOCE2K7NO5GGU3KYL',
japanese: 'S3IDY5JTJVJ6XBISPGZBZQHQXO23BXEB',
kannada: 'MZ7NKAQGQI3T4JH6YRIEL6K4AWDCDE3A',
korean: '5UWNE4YDBZTSNWWBYC4XZEWJGBUI24YL',
laothian: 'GEM2VG7WS7NIWWYCVUKKW6T2BZDND4J2',
latvian: 'FZ7HMEZDHUTGCA77BGYHRGJ3ENK3H6HD',
lithuanian: 'ZDSKNPEMQJMVPX3AFIKGGT2CGZG3SLDW',
malay: 'YW73R7QWXQT23GE5CTM4R2IVNCH2KMS3',
mongolian: '73LDBOC5T55YLADCESZUHS2CI447UMWE',
norwegian: 'TOXJSFSKC7EQAJRMYXOQMMZ5FEYT5ZCF',
persian: 'OQS2XU2VPTCHUNNOGLWAGGVNP4LIFXZI',
malayalam: 'KIZY64QLOGZ7JWJWX2DKE247KV6VHAYT',
polish: 'G73FWND7N5O3ZCSBCHF6NDOV2QIXW2MF',
portuguese: 'N7D57ZCGWLRSMQNHQYKWC3OHVNTZI5UT',
romanian: '4Q4AMYQP43UCUV2RJOT4TRAONA6JYSMD',
russian: 'V2IMQUEC5M7TSYAY3VCKSGQ7HOCWFPFY',
serbian: 'ZQEVSPDJ7TV4GJSTO3EV4JOFQGF2AJYI',
slovak: 'SCXIEULQSWCFQNBCOF7ERG6EHRKYV4SL',
slovenian: 'UKZACHY2BVGVHWZGCWDDB5LQ2WBKZ5XL',
sinhala: 'N4RYKKDHSXB6IID6JILOX5A27UJLBJJ7',
spanish: 'JU6JOEJBHRH7IILGSSUVEYO552JUNMG4',
swahili: 'JDXM4LB6AXQNCURNTZ5RT2U5I2CBXLBT',
swedish: '33RMFTS5OKLEWV2KGX2HMTP7M3VCKXC4',
tamil: 'MNIEHY7BQVMEU6BBJBL57E4QYNHOUIDB',
telugu: 'MXE6BFOLRMR72GLUFEK3Y7NOUBPV5W4G',
thai: 'MA3JUGAZNCCTBBTO2K7HR3RWJ3LILU6E',
turkish: 'HZJRJNL3C3KLBXZQ4BPIODYRKXXRKYCL',
ukrainian: 'OW43DTZJ432PEORIXR72R35V4H6SUUU3',
urdu: 'T5FSZMLJ55LNPBIILM2A2SVEA3YIIYL3',
vietnamese: 'ULJN5SUWA3HJKLPKHOSTOH5AJSSWN5H3',
zulu: 'B6OMGRZUYIJ5WLDQZODKCFCXCTH7PHB3'
vietnamese: 'ULJN5SUWA3HJKLPKHOSTOH5AJSSWN5H3'
};

export {targetEnv, clientAppVersion, witApiKeys};
Loading

0 comments on commit 182a0aa

Please sign in to comment.