Giter Site home page Giter Site logo

i18n's Introduction

๐ŸŒ Koj I18N

This repository contains our internationalization files, synced every hour from Google Sheets, so they're version controlled i18n files with git. On built time, our website fetches them from here.

Update CI Trigger CI

โญ How it works

Every hour, a GitHub Actions workflow generates the files in the ./locales directory from a Google Sheets spreadsheet with the following layout:

key en-ch de-ch
key1 Value English Value German

In this spreadsheet, the cell A1 should be "key", and B1...X1 should be language codes.

The generated file ./locales/de-ch.json, for example, would be:

{
  "key1": "Value German"
}

Configuration

The following environment variables are required:

You can also create a .i18nrc file in the root of your project instead, with the keys sheetId and buildWebhook:

{
  "sheetId": "example",
  "buildWebhook": "https://example.com/post"
}

๐Ÿ‘ฉโ€๐Ÿ’ป Development

Run process locally:

npm run start

๐Ÿ“„ License

The code in this repository, with the exception of the locales folder, are licensed under MIT.

The contents of the locales folder are licensed under CC-BY-4.0.

Koj

An open source project by Koj.
Furnish your home in style, for as low as CHF175/month โ†’

i18n's People

Contributors

anandchowdhary avatar pabio-escobar avatar

Watchers

 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.