gettext.js

Example

This text is static, it must be translated using server-side libraries.

The text that is displayed by the buttons is dynamic, it is translated using the gettext JS library. This only works when the files are on a server.

You can have a look to the very same file in french, in spanish and in polish.

Only the dynamic parts are translated, only the lang attribute in html is changed.