From 1252dedf10756c3bd33c92aa488897e37954b0a7 Mon Sep 17 00:00:00 2001 From: junwen-k <40173716+junwen-k@users.noreply.github.com> Date: Sat, 5 Jul 2025 17:43:31 +0800 Subject: [PATCH 1/2] docs: update started.md to clarify unsupported JavaScript-based locale files --- docs/started.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/started.md b/docs/started.md index 38ac84fc..4b329c86 100644 --- a/docs/started.md +++ b/docs/started.md @@ -177,6 +177,8 @@ This plugin provides some predefined configs. You can use the following configs The `localePattern` options does not support SFC i18n custom blocks (`src` attribute), only for resources of files to import when specified in VueI18n's `messages` options (VueI18n v9 and later, `messages` specified in `createI18n`) for resources of files to import. +JavaScript-based locale files (e.g., `.js` and `.ts`) are not currently supported. For more information, please see [#32](https://github.com/intlify/eslint-plugin-vue-i18n/issues/32). + ::: ### Running ESLint from command line From adfa71fa259fb7144bf0c82ab5bbef9dcf24ed6d Mon Sep 17 00:00:00 2001 From: junwen-k <40173716+junwen-k@users.noreply.github.com> Date: Wed, 30 Jul 2025 22:44:48 +0800 Subject: [PATCH 2/2] docs: update javascript-based locale warning --- docs/started.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/started.md b/docs/started.md index 4b329c86..d587118b 100644 --- a/docs/started.md +++ b/docs/started.md @@ -177,7 +177,7 @@ This plugin provides some predefined configs. You can use the following configs The `localePattern` options does not support SFC i18n custom blocks (`src` attribute), only for resources of files to import when specified in VueI18n's `messages` options (VueI18n v9 and later, `messages` specified in `createI18n`) for resources of files to import. -JavaScript-based locale files (e.g., `.js` and `.ts`) are not currently supported. For more information, please see [#32](https://github.com/intlify/eslint-plugin-vue-i18n/issues/32). +JavaScript-based locale files have limited support. JavaScript (`.js`) files can be loaded and used with rules that check for missing keys (like `no-missing-keys`), but TypeScript (`.ts`) locale files are not supported. Rules that analyze locale file contents (like `no-duplicate-keys-in-locale` and `no-html-messages`) are not supported for either format. For more information, please see [#32](https://github.com/intlify/eslint-plugin-vue-i18n/issues/32). :::