Y
Hacker News
new
|
ask
|
show
|
jobs
by
arthurk
4438 days ago
this looks very nice! is it possible to translate messages that only show in specific use-cases (for example error messages)?
1 comments
cj
4438 days ago
Yes! Localize.js watches the page for changes, and immediately translates text that is added to the page (like an error message).
You can also translate text manually, like this: Localize.translate('Hello!');
link
You can also translate text manually, like this: Localize.translate('Hello!');