To this web application, we have to add internationalization(i18n) support for languages ike Spanish, French and later extend to other languages.
Can you pleaes clarify ?
In your case, moving strings now to properties files might require lot of code change.
One suggestion from me is,
- to externalize the hardcoded strings to a separate .js file.
- Define a directory structure to organize English and other localized .js files in your application
- Develop a mechanism to dynamically load localized .js files and fetch localized strings for use in your application based on user's preferred language
NOTE: Translated .js files should be UTF-8 encoded, unless your application supports any other native encodings.
This also requires code change, but might require lesser effort.
Hope it helps.
My 2 cents.