We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2322356 commit 1b9948aCopy full SHA for 1b9948a
1 file changed
src/utilities/locales.ts
@@ -148,6 +148,13 @@ function extractStorefrontTranslationKeys(content: string): Set<string> {
148
}
149
150
151
+ // Find all locale: parameters in any render call
152
+ const localePattern = /render\s+["'][^"']+["'][\S\s]*?locale:\s*["']([^"']+)["']/g
153
+ const localeMatches = [...content.matchAll(localePattern)]
154
+ for (const match of localeMatches) {
155
+ keys.add(match[1])
156
+ }
157
+
158
// Combine with utility.translate translations
159
return new Set([...keys, ...extractUtilityTranslateKeys(content)])
160
0 commit comments