Skip to content

archetype-themes/locales

Repository files navigation

Archetype Ecommerce Locales

Export-1705940990576

Watch the video introduction

Ecommerce websites, like those powered by Shopify themes, contain strings of text like Add to cart or Continue shopping. If you want your website to be accessible in multiple languages, those strings need to be translated. Why should you do the work of translating strings that have already been translated!?

Introducing the Archetype Themes Ecommerce Locales Library, your (open) source for all of your e-commerce translations! Instead of translating the same strings over and over again in private silos, let's pool translations into one place so that everyone wins!

How to use

Using these locales files in your next Shopify theme project is as easy as:

  1. Copy the JSON files, in their entirety, into your latest theme project. There is no penalty to having extra translations included in your theme (just a limit of 3400).
  2. Use the Locales Detective to find a translation you need. You can search this repo or shopify/dawn and you can select your search input language.
  3. Use the copy button to copy the Liquid (e.g. {{ add_to_cart | t }}) to your clipboard and paste it into your theme!

As a bonus, the copy button can even handle translations with interpolations. So a translation like "You save {{ saved_amount }}" will generate Liquid like {{ 'you_save_amount' | t: saved_amount: "[saved_amount]" }}!

Contributing

Don't have translations for every language? No problem! Thanks to Github Actions + Microsoft Azure AI Translator, a follow-up pull request containing any missing translations you contribute will be automatically created. Yes, the AI translations even respect interpolated value placeholders and HTML, leaving them unmodified!

Check out the CONTRIBUTING.md for more details

About

A collection of common ecommerce translations structured to work with Shopify Themes

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published