Code Monkey home page Code Monkey logo

pannellum-translation's Introduction

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 IETF language tags like so: de.json => German, sometimes you need more precision for some dialects e.g. German Swiss would be de-CH.json. (Note: Previously ISO 3166-1 alpha-2 and 3166-2 codes were used for naming the translation files, but for translation languages IETF language tags are better suited).

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 en-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."!

  1. Fork this repo.
  2. Create a branch e.g. add-german-translation.
  3. Create a JSON file with the correct IETF language tag e.g. es.json.
  4. Translate the strings.
  5. Make a pull request.
  6. Now your changes will be reviewed by native speakers to ensure quality.
  7. If the quality is acceptable, your translation will be merged. Thank you for contributing.

pannellum-translation's People

Contributors

albllacer avatar bagus-setyawan avatar charleserious avatar daisy1754 avatar danielbiegler avatar ffahri avatar georgthomassen avatar gloorx avatar jhisse avatar louiswolfers avatar matejmecka avatar mkainula avatar mrupsidown avatar oliverklimt avatar sirivasv avatar strarsis avatar telkel avatar ulrikstrid avatar verginer avatar wotta avatar xyzatesz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

pannellum-translation's Issues

Add to npm?

I am already using webpack for bundling pannellum. It would be nice of course if the translation files can also be loaded by webpack and then just passed to pannellum.
Publishing this on npm would be nice or at least adding a package.json.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.