Create JavaScript in other languages

I have several clients who do not speak English. They would like JavaScript to write for them in another language.

Can browsers understand other languages, or will I limit myself to comments other than English?

navigateur.nomApp.indice("Microsoft")

Instead:

navigator.appName.indexOf("Microsoft")
+1
source share
9 answers

You can get any object and assign it to a variable with a French name, for example

var nomAppDeNavigateur = navigator.appName;

Then use it everywhere, these are just keywords that are limited to Javascriptish. This should still make sense, no matter what language you strive for.

+12
source

JavaScript is not written in English, it is written in JavaScript.

+27

JavaScript , . . , . .

+24

JavaScript - , :

String.prototype.indice= String.prototype.indexOf;
navigator.nomApp= navigator.appName;
window.navigatrice= navigator;

Et voilà! . , , .

PS. .

+7

. , . , , , , -, .

. Jeff Atwoods :

+4

.

, :

1991 , , , ; , , , , . , , , ( ).

, , Wikipedia .

, .

+3

. . , , , .

+1

JS, , / , , ...

+1

, API ; API- , , navigator navigateur.

Allegedly, you could write a translation structure that would translate French keywords and French API calls into their English counterparts, but that would be a lot of work.

0
source

Source: https://habr.com/ru/post/1665307/


All Articles