0.8.444
This commit is contained in:
@@ -5,31 +5,6 @@
|
|||||||
// window.onfocus = function () {
|
// window.onfocus = function () {
|
||||||
// getSocketState()
|
// getSocketState()
|
||||||
// }
|
// }
|
||||||
let map_of_words_en = new Map([
|
|
||||||
['закрыть'],['Close']
|
|
||||||
])
|
|
||||||
let map_of_words_ru = new Map([
|
|
||||||
['close'],['Закрыть']
|
|
||||||
])
|
|
||||||
function translate_words (word,lang){
|
|
||||||
let corr_word = word.toLowersCase()
|
|
||||||
let trans_word = null
|
|
||||||
if (lang === 'ru'){
|
|
||||||
trans_word = map_of_words_ru.get(`${corr_word}`)
|
|
||||||
|
|
||||||
} else if (lang === 'en') {
|
|
||||||
trans_word = map_of_words_en.get(`${corr_word}`)
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
function check_return_trans_word (str) {
|
|
||||||
if (!str === undefined && str === '' && str){
|
|
||||||
return str
|
|
||||||
} else {
|
|
||||||
console.log(`error! str = ${str}`)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
window.onload = function (){
|
window.onload = function (){
|
||||||
middleWareJS()
|
middleWareJS()
|
||||||
|
|||||||
Reference in New Issue
Block a user