diff --git a/build/assets.js b/build/assets.js index e5626134..d930043f 100644 --- a/build/assets.js +++ b/build/assets.js @@ -140,7 +140,7 @@ async function bundleScripts(srcPath, destPath, minify = false, watch = false, o .replace(/\/icons\.svg/g, iconsPath); // Cache busting for icons // Replace localisation strings. - const output = text.replace(/<<([\w\s-:]+)>>/g, (_, str) => options.translate?.(locale, str) || str); + const output = text.replace(/<<([\w\s-:.,]+)>>/g, (_, str) => options.translate?.(locale, str) || str); const dest = locale === 'en' ? destPath : destPath.replace('.js', `.${locale}.js`); await writeFile(dest, output);