Gettext for ECMAScript also known as JavaScript.
This mono-repo contains the following packages:
$ npm install
$ yarn run test
See the prerequisites of the esgettext tools.
Create a repository, populate it with some source file and then prepare it for internationalization (i18n):
$ npx esgettext init --dry-run --verbose
Run the command again without --dry-run
, when you are happy with the
output.
The command has created an esgettext configuration file, or - depending on your
choice - a section inside your package.json
. It has also added a bunch
of scripts inside package.json
. In the future, it will be enough to just
run npm run esgettext
to get everything up-to-date for translations. At the
moment, this will still fail until you have started marking strings as
translatable (see @esgettxt/runtime for
more information) and you have added the first language to your project.
Copyright (C) 2020-2024 Guido Flohr [email protected], all rights reserved.
This software is available under the terms and conditions of the WFTPL.