views:

33

answers:

1

The WYSIWYG for web we have only has English Interface. For Japanese language Interface what will be the appropriate steps to make it. In future, it may requires the other language support.

I am planning in this way-

For Japanese language setting, in the .js file

var language={
    "bold":"太字のテキスト",        
    "italic":"斜体文字",
    ..
    ..        
};

What do you think, is it a good apporach?

A: 

You should check Eli Grey's post about Localization in JavaScript where the author presents a localization JavaScript library named l10n.js.

Arnaud Leymet