Giter Club home page Giter Club logo

snipcart-l10n's Introduction

๐Ÿงพ Snipcart localization files

This repository contains localization files for Snipcart v3.0. Our team officially maintains the en.json file, this is the one that should be used as a starting point if you want to add a new language.

Each file name should be the language ISO code, we also support regional locales (en-US, fr-FR, etc.).

๐Ÿ‘ทโ€โ™€๏ธ How to contribute

To submit a new translation, you'll need to open a pull request. To do this, you'll need to start by forking our repository. Open the repository on Github, then click on Fork. This will create a copy of the repository under your Github account.

Once the repo is forked, clone it on your computer. Then open the project with your favorite code editor. You'll see a folder named locales. This is the folder that contains the localization files.

A localization file is a JSON document that contains all the labels used throughout the cart. To add a new language, simply create a new file in this folder, the file should be named with the locale ISO code, for instance en.json for english, or fr.json for french.

Translate all the values in this file, then commit and push your changes to your repository. Then, you will be able to open a pull request. On our side, we'll review the pull request and then merge it if everything looks fine.

Please refer to this article about how forks and pull requests work on Github.

Regional locales

Sometimes, depending on where you're located, some wording might change. For example, some english words and expressions are different in the UK than in the US, so you might want to use a regional location file: en-GB for instance.

When you create a regional locale, you can override only necessary locales, you don't need to rewrite the whole file. Our building process will make sure to merge everything together. Here's an example of what we did for the fr-FR regional locale:

{
    "actions": {
        "continue_shopping": "Continuer les achats"
    },
    "billing": {
        "continue_to_shopping": "Continuer les achats"
    }
}

snipcart-l10n's People

Contributors

arnaudligny avatar bannouheol avatar chrisben avatar chuckcote avatar couellet avatar dominic-blain avatar efffix avatar equildev avatar fhamon avatar francescomugnai avatar imgarylai avatar jeansebtr avatar jonasnobile avatar jpsirois avatar leamarchand avatar miguelpinheiromarques avatar moritzebeling avatar mverstegen avatar nelitow avatar pgmichael avatar primozrome avatar realguillaume avatar revnandi avatar sebastienlemi avatar tadwohlrapp avatar thatfrankdev avatar tzortz avatar uintaam avatar wab avatar webshapedbiz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

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.