Skip to content
This repository has been archived by the owner on Nov 17, 2020. It is now read-only.
/ i18n Public archive

🌐 Language files from Google Sheets for Koj's website

License

Unknown and 2 other licenses found

Licenses found

Unknown
LICENSE
CC-BY-SA-4.0
LICENSE.CC
MIT
LICENSE.MIT
Notifications You must be signed in to change notification settings

pabio/i18n

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

62 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

🌐 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 β†’

About

🌐 Language files from Google Sheets for Koj's website

Topics

Resources

License

Unknown and 2 other licenses found

Licenses found

Unknown
LICENSE
CC-BY-SA-4.0
LICENSE.CC
MIT
LICENSE.MIT

Code of conduct

Security policy

Stars

Watchers

Forks