Skip to content

Commit 291aa36

Browse files
author
Craig Cornelius
authored
Fix almost all NodeJS collation issues. (#476)
1 parent aec3bcb commit 291aa36

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

executors/node/collator.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,21 @@ module.exports = {
7575
}
7676
}
7777

78+
// Locale special cases
79+
if (testLocale.search('co-search') >= 0) {
80+
testCollOptions['usage'] = 'search';
81+
}
82+
83+
if (testLocale.search('-kr-') >= 0) {
84+
outputLine = {'label': json['label'],
85+
'error_message': "unsupported locale extension",
86+
'unsupported': '-kr-',
87+
'error_detail': testLocale,
88+
'error': 'Unsupported locale extension'
89+
};
90+
return outputLine;
91+
}
92+
7893
// Get other fields if provided
7994
let rules = undefined;
8095
if ('rules' in json) {

0 commit comments

Comments
 (0)