zhukov / webogram

Telegram web application, GPL v3
https://web.telegram.org
GNU General Public License v3.0
7.94k stars 2.36k forks source link

Translate webogram into Arabic #2100

Open MesterPerfect opened 3 years ago

MesterPerfect commented 3 years ago

Hello I want to translate webogram into Arabic I installed it on my server and tried to add Arabic, but it didn't work I entered /js/locales and created ar-sa.json file In it I put the contents of the en-us.json file and translated some phrases After translating phrases, I modified the app.js file I have modified this code

languages:
{
"en-us":"English",
"de-de":"Deutsch",
"es-es":"Español",
"it-it":"Italiano",
"ru-ru":"Русский",
"nl-nl":"Nederlands",
"pt-br":"Português (Brazil)"
}

After modification

languages:
{
"ar-sa":"Arabic",
"en-us":"English",
"de-de":"Deutsch",
"es-es":"Español",
"it-it":"Italiano",
"ru-ru":"Русский",
"nl-nl":"Nederlands",
"pt-br":"Português (Brazil)"

But it didn't work Are there solutions?