possibility to add a new language #276
-
ProblemContributors can't create new languages in the editor. ProposalGive a new option in the editor to add a new language. Additional informationThis feature is harder to accomplish. The inlang editor needs to:
|
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 4 replies
-
An alternative to modifying the config dynamically could be a Monaco editor embedded into the editor that lets users directly modify the config in the inlang editor. The embedded Monaco editor should have extensive lints and warnings ofc. Maybe the embedded monaco editor can run part of the ide-extension that shows additional warnings and config steps. |
Beta Was this translation helpful? Give feedback.
-
How about having a
|
Beta Was this translation helpful? Give feedback.
-
Discussion in a PR about adding new languages osmosis-labs/osmosis-frontend#1243 (comment).
|
Beta Was this translation helpful? Give feedback.
-
ProposalEncourage plugins, and config authors, to automatically derive languages that exist in a repository. If languages are automatically detected, inlang apps just need to create an empty export async function defineConfig(env) {
const plugin = await env.$import(
"https://cdn.jsdelivr.net/gh/samuelstroschein/inlang-plugin-json@1/dist/index.js"
);
const pluginConfig = {
pathPattern: "./{language}.json",
};
return {
// ...
languages: await plugin.getLanguages({ ...env, pluginConfig }),
};
} Pros
Cons
Inspired by @ivanhofer's remarks and his plugin https://github.com/ivanhofer/inlang-plugin-typesafe-i18n |
Beta Was this translation helpful? Give feedback.
-
Shipped by @ivanhofer, @NilsJacobsen and @NiklasBuchfink recently. |
Beta Was this translation helpful? Give feedback.
Shipped by @ivanhofer, @NilsJacobsen and @NiklasBuchfink recently.