Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update inlang configuration #3733

Open
wants to merge 13 commits into
base: main
Choose a base branch
from
6 changes: 4 additions & 2 deletions CONTRIBUTING.md
Expand Up @@ -149,5 +149,7 @@ See
[![translation badge](https://inlang.com/badge?url=github.com/LAION-AI/Open-Assistant)](https://inlang.com/editor/github.com/LAION-AI/Open-Assistant?ref=badge)

To add translations, you can manually edit the JSON translation files in
`website/public/locales`, use the [inlang](https://inlang.com/) online editor,
or run `npm run inlang:lint` inside `website` to find missing translations.
`website/public/locales`, use the
[inlang](https://inlang.com/editor/github.com/LAION-AI/Open-Assistant) online
editor, or run `npx @inlang/cli@latest lint --project ./project.inlang` to find
missing translations.
18 changes: 0 additions & 18 deletions inlang.config.js

This file was deleted.

67 changes: 67 additions & 0 deletions project.inlang/settings.json
@@ -0,0 +1,67 @@
{
"$schema": "https://inlang.com/schema/project-settings",
"sourceLanguageTag": "en",
"languageTags": [
"ar",
"bar",
"bg",
"ca",
"cs",
"da",
"de",
"el",
"en",
"eo",
"es",
"eu",
"fa",
"fi",
"fr",
"gl",
"he",
"hi",
"hu",
"id",
"it",
"ja",
"ko",
"lt",
"ms",
"nb-NO",
"nl",
"pl",
"pt-BR",
"ro",
"ru",
"sk",
"sl",
"sr",
"sv",
"swg",
"th",
"tr",
"uk-UA",
"vi",
"zh"
],
"modules": [
"https://cdn.jsdelivr.net/npm/@inlang/plugin-i18next@latest/dist/index.js",
"https://cdn.jsdelivr.net/npm/@inlang/message-lint-rule-missing-translation@latest/dist/index.js",
"https://cdn.jsdelivr.net/npm/@inlang/message-lint-rule-empty-pattern@latest/dist/index.js",
"https://cdn.jsdelivr.net/npm/@inlang/message-lint-rule-without-source@latest/dist/index.js",
"https://cdn.jsdelivr.net/npm/@inlang/message-lint-rule-identical-pattern@latest/dist/index.js"
],
"plugin.inlang.i18next": {
"pathPattern": {
"common": "./website/public/locales/{languageTag}/common.json",
"dashboard": "./website/public/locales/{languageTag}/dashboard.json",
"index": "./website/public/locales/{languageTag}/index.json",
"labelling": "./website/public/locales/{languageTag}/labelling.json",
"leaderboard": "./website/public/locales/{languageTag}/leaderboard.json",
"message": "./website/public/locales/{languageTag}/message.json",
"stats": "./website/public/locales/{languageTag}/stats.json",
"tasks": "./website/public/locales/{languageTag}/tasks.json",
"tos": "./website/public/locales/{languageTag}/tos.json"
}
}
}