ParaglideJS: "Identical content found in language" for homographs #2111
-
Hi, I apologize if this is a naive question, but I couldn’t find anything in the documentation or on GitHub. I use three languages on my website: English, French, and Spanish. The word ‘Contact’ is spelled the same in English and French, and ‘Contacto’ in Spanish, so I need to translate it. The issue is that I receive this warning: <h3>{m.$contact()}</h3>
Is it possible to indicate that the French and English translations are the same while maintaining the Spanish translation, or can I disable this warning for this line? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
This is something we are working on, the lint rule is a bit too agressive. There currently is no way to disable it per-line, but you can disable it outright by removing it from {
"$schema": "https://inlang.com/schema/project-settings",
"sourceLanguageTag": "en",
"languageTags": [...],
"modules": [
"https://cdn.jsdelivr.net/npm/@inlang/message-lint-rule-empty-pattern@latest/dist/index.js",
- "https://cdn.jsdelivr.net/npm/@inlang/message-lint-rule-identical-pattern@latest/dist/index.js",
"https://cdn.jsdelivr.net/npm/@inlang/message-lint-rule-missing-translation@latest/dist/index.js",
"https://cdn.jsdelivr.net/npm/@inlang/message-lint-rule-without-source@latest/dist/index.js",
"https://cdn.jsdelivr.net/npm/@inlang/plugin-message-format@latest/dist/index.js"
],
"plugin.inlang.messageFormat": {
"pathPattern": "./messages/{languageTag}.json"
}
} |
Beta Was this translation helpful? Give feedback.
This is something we are working on, the lint rule is a bit too agressive. There currently is no way to disable it per-line, but you can disable it outright by removing it from
project.inlang/settings.json
:{ "$schema": "https://inlang.com/schema/project-settings", "sourceLanguageTag": "en", "languageTags": [...], "modules": [ "https://cdn.jsdelivr.net/npm/@inlang/message-lint-rule-empty-pattern@latest/dist/index.js", - "https://cdn.jsdelivr.net/npm/@inlang/message-lint-rule-identical-pattern@latest/dist/index.js", "https://cdn.jsdelivr.net/npm/@inlang/message-lint-rule-missing-translation@latest/dist/index.js", "https://cdn.jsdelivr.net/npm/@inlang/message-lint-rule-without-so…