Skip to content

BelkaLab/i18n-timezones

Repository files navigation

i18n-timezones

Give your users a selection of supported timezones in their own language.

Xliff Time Zone Database's translation tool and files, automated by the offical Unicode's Common Locale Data Repository and Google Translate API for the missing items.

Alt text

Intro

You want give the users a selection of supported timezones in their own languages, and XLIFF is the format you use, then this is the repository for you.

The files are not translated manually, but they take advantage of the Unicode's Common Locale Data. In case some item is missing, google translation API is used to give a fallback translation. Because of this, some timezone could not have been translated correctly, although the most common timezones and languages should have a pretty good translation thanks to the CLDR.

Ready to use Xliff files

Under /translations you will find a bunch of timezone translations compiled already. The source items do not come from the IANA official DB, but from the latest Timezone DB Postgres has adopted. In the moment of writing Postgres adopts the latest spec IANA timezones db. The files will be updated whenever a new version of Postgres is on its docker official repository.

Using the tool

If you want to translate it your own, or a translation is missing, you need Docker to run the whole thing, then you can take advantage of the run.sh:

./run.sh <tag> [-o <outputFile>] [-k <devKey>]

devKey can be omitted if the environmental variable DEVELOPER_KEY is set

Contributors

License

i18n-timezones is Copyright (c) 2016 Belka, srl. It is free software, and may be redistributed under the terms specified in the LICENSE file.

About Belka

Alt text

Belka is a Digital Agency specialized in design, mobile applications development and custom solutions. We love open source software! You can see our projects or look at our case studies.

Interested? Hire us to help build your next amazing project.

www.belka.us

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published