Skip to content

Commit c496765

Browse files
committed
consider other unicode commas when splitting translated terms
1 parent 17e6bac commit c496765

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/translations.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ function fetchTranslations(options) {
162162
// remove translation message if it was included somehow
163163
field.terms.replace(/\[.*\]/, '')
164164
// convert to an array
165-
.split(',')
165+
.split(/[,،]/)
166166
// make everything lowercase and remove whitespace
167167
.map(s => s.toLowerCase().trim())
168168
// remove empty strings

0 commit comments

Comments
 (0)