Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add a translation module #11

Open
bastienEichenberger opened this issue Dec 6, 2017 · 1 comment
Open

add a translation module #11

bastienEichenberger opened this issue Dec 6, 2017 · 1 comment

Comments

@bastienEichenberger
Copy link
Owner

Write a module to translate string and load translations files

@bastienEichenberger
Copy link
Owner Author

bastienEichenberger commented Dec 10, 2017

$.writeln($.locale)

today = {
en: "Today is %1/%2",
de: "Heute ist der %2.%1.",
fr: "aujourd'hui nous sommes le %1, %2"
};
d = new Date();
alert (localize (today, d.getMonth()+1, d.getDate()));

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant