From 7ee1bbe5f19c81b129676cfb5d7ea7081b8a99bc Mon Sep 17 00:00:00 2001 From: OnlyRefat Date: Sun, 20 Nov 2016 00:34:08 +0600 Subject: [PATCH] bangla language added --- src/config.js | 6 +++--- src/effects/translate.js | 6 ++++-- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/src/config.js b/src/config.js index b98f9d7c..8a83b970 100644 --- a/src/config.js +++ b/src/config.js @@ -1,6 +1,6 @@ // Insert your own API keys here: -const cloudVisionKey = '' -const translateKey = '' +const cloudVisionKey = ''; +const translateKey = ''; export const apiUrls = { cloudVision: 'https://vision.googleapis.com/v1/images:annotate?key=' + cloudVisionKey, @@ -9,5 +9,5 @@ export const apiUrls = { export const langList = [ 'spanish', 'french', 'german', 'italian', 'chinese', 'japanese', 'korean', - 'hindi', 'dutch' + 'hindi', 'dutch', 'bangla' ] diff --git a/src/effects/translate.js b/src/effects/translate.js index 026b0677..f258f256 100644 --- a/src/effects/translate.js +++ b/src/effects/translate.js @@ -41,7 +41,8 @@ const setVoiceMap = voiceList => { korean: /ko(-|_)kr/i, japanese: /ja(-|_)jp/i, dutch: /nl(-|_)nl/i, - hindi: /hi(-|_)in/i + hindi: /hi(-|_)in/i, + bangla: /bn(-|_)bd/i, } voiceMap = Object.keys(voiceRxs).reduce((a, k) => { @@ -68,7 +69,8 @@ const langMap = { korean: 'ko', japanese: 'ja', dutch: 'nl', - hindi: 'hi' + hindi: 'hi', + bangla: 'bn' } const cache = {}