You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

inlang.config.js 700B

1234567891011121314151617181920212223
  1. /**
  2. * @type { import("@inlang/core/config").DefineConfig }
  3. */
  4. export async function defineConfig(env) {
  5. const { default: i18nextPlugin } = await env.$import(
  6. 'https://cdn.jsdelivr.net/npm/@inlang/plugin-i18next@2/dist/index.js'
  7. );
  8. const { default: standardLintRules } = await env.$import(
  9. 'https://cdn.jsdelivr.net/npm/@inlang/plugin-standard-lint-rules@3/dist/index.js'
  10. );
  11. return {
  12. referenceLanguage: 'main',
  13. plugins: [
  14. i18nextPlugin({
  15. pathPattern: 'lang/{language}.json',
  16. ignore: [ 'languages.json', 'translation-languages.json' ]
  17. }),
  18. standardLintRules()
  19. ]
  20. };
  21. }