-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add
inlang
to make the contribution of translations easier (#3393)
## Description This PR add the `inlang.config.js` and `@inlang/cli` to Open-Assistant to solve the issue #3077 With these changes, translators can manage translations in a no-code web editor and useful linting rules and machine translations can be used within the editor or via the `@inlang/cli`. I added a badge with the current translation status and a short description to the contribution guidelines. ### Preview **Editor** A live instance of the editor can be previewed with the following link: https://inlang.com/editor/github.com/NiklasBuchfink/Open-Assistant **Badge** [![translation badge](https://inlang.com/badge?url=github.com/NiklasBuchfink/Open-Assistant)](https://inlang.com/editor/github.com/NiklasBuchfink/Open-Assistant?ref=badge) ## Further information To check the status of the translations, exece `npx inlang lint`. Other useful command like `machine translate` and `open editor` your can find in the [docs](https://inlang.com/documentation/apps/inlang-cli). Within this week, the inlang VS code extension should also work ootb for `i18next` projects and helps extract messages and display inline annotations.
- Loading branch information
1 parent
6552c0e
commit c25f2a8
Showing
5 changed files
with
44 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
export async function defineConfig(env) { | ||
const { default: i18nextPlugin } = await env.$import( | ||
"https://cdn.jsdelivr.net/npm/@inlang/plugin-i18next@2/dist/index.js" | ||
); | ||
const { default: standardLintRules } = await env.$import( | ||
"https://cdn.jsdelivr.net/gh/inlang/standard-lint-rules@2/dist/index.js" | ||
); | ||
|
||
return { | ||
referenceLanguage: "en", | ||
plugins: [ | ||
i18nextPlugin({ | ||
pathPattern: "./website/public/locales/{language}/*.json", | ||
}), | ||
standardLintRules(), | ||
], | ||
}; | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
c25f2a8
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hello guys 👋
Your project seems to me to be very interesting.
I would also like to contribute to the project and work in particular on the problem of the reward aspect.
Thank you in advance 🤝.