Skip to content

Commit 8c51fc0

Browse files
committed
consider other unicode commas when splitting translated terms
1 parent f15c5a2 commit 8c51fc0

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
@@ -160,7 +160,7 @@ function fetchTranslations(options) {
160160
// remove translation message if it was included somehow
161161
field.terms.replace(/\[.*\]/, '')
162162
// convert to an array
163-
.split(',')
163+
.split(/[,،]/)
164164
// make everything lowercase and remove whitespace
165165
.map(s => s.toLowerCase().trim())
166166
// remove empty strings

0 commit comments

Comments
 (0)