We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1f3614b commit 8d76521Copy full SHA for 8d76521
src/languages/lib/correct-translation-content.ts
@@ -114,10 +114,7 @@ export function correctTranslatedContentStrings(
114
content = content.replaceAll('{% それ以外の %}', '{% else %}')
115
content = content.replaceAll('{%- それ以外の %}', '{%- else %}')
116
// `{% それ以外の場合 ifversion X %}` → `{% elsif X %}` (confused elsif + ifversion)
117
- content = content.replace(
118
- /\{% それ以外の場合 ifversion\s+(.+?)\s*%\}/g,
119
- '{% elsif $1 %}',
120
- )
+ content = content.replace(/\{% それ以外の場合 ifversion\s+(.+?)\s*%\}/g, '{% elsif $1 %}')
121
// `{%- "supported" %}` → `{%- when "supported" %}` (missing `when`)
122
// Preserves original trim syntax (`{%-` vs `{%`)
123
content = content.replace(/\{%-?\s*"(supported|not_supported|preview)"\s*%\}/g, (match) => {
0 commit comments