pannellum-translation
A central place for translated user-facing strings for the panorama viewer library called Pannellum.
Pannellum includes english strings by default which can be overwritten to create a localized experience for the user/s.
The actual file names holding the strings should conform to the ISO 3166-1 alpha-2 and (if necessary) 3166-2 Codes like so: DE.json
=> German
, sometimes you need more precision for some dialects e.g. German Bavarian would be DE-BY.json
If you have a request for a translation, only open an issue if it doesnt exist already! Instead express your interest inside the existing issue.
NPM
You can find the package here.
If you want to contribute:
Check out the american english US.json
file to get an idea of how this works.
Note how there are substitutions %s
e.g. "The file %s could not be accessed."
!
- Fork this repo.
- Create a branch e.g.
add-german-translation
. - Create a JSON file with the correct ISO codes e.g.
ES.json
. - Translate the strings.
- Make a pull request.
- Now your changes will be reviewed by native speakers to ensure quality.
- If the quality is acceptable, your translation will be merged. Thank you for contributing.