remnoteio / translation

Help us translate RemNote! Editor at https://inlang.com/editor/github.com/remnoteio/translation
5 stars 137 forks source link

Fix inlang.config.js #6

Closed NiklasBuchfink closed 1 year ago

NiklasBuchfink commented 1 year ago

@dewil-official, I saw that you were struggling with the configuration of inlang.config.js.

Why it's not working

With the update from major version 2 to 3 of inlang/plugin-i18n:

  1. the wildcard * is not supported anymore
  2. we introduced namespaces

Supported Notation

Without namespaces

pathPattern: "./resources/{language}.json"

With namespaces

Does not get created by 'npx @inlang/cli config init'

pathPattern: {
    common: "./resources/{language}/common.json"
    vital: "./resources/{language}/vital.json"
}

More about the recent changes in this readme: https://github.com/inlang/inlang/tree/main/source-code/plugins/i18next

If you have any more questions, please don't hesitate to contact me.

dewil-official commented 1 year ago

Thank you! That actually fixed it. Sorry, I didn't expect that change and the error didn't help at all. Should've probably checked the changelog.

NiklasBuchfink commented 1 year ago

This is good feedback. We will improve the error messages to make them more helpful👍