Skip to content

Commit

Permalink
Looking at likely subtags unsupported
Browse files Browse the repository at this point in the history
  • Loading branch information
sven-oly committed Jan 15, 2025
1 parent 8b812d9 commit f658c04
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions executors/dart_web/bin/likely_subtags.dart
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ String testLikelySubtags(String jsonEncoded) {
String resultLocale;
if (testOption == 'maximize') {
resultLocale = locale.maximize().toLanguageTag();
} else if (testOption == 'minimizeFavorScript' ||
} else if (testOption == 'minimizeFavorRegion' ||
testOption == 'minimize') {
resultLocale = locale.minimize().toLanguageTag();
} else if (testOption == 'minimizeFavorRegion') {
} else if (testOption == 'minimizeFavorScript') {
throw UnimplementedError();
} else {
throw ArgumentError('Unknown test option = $testOption');
Expand All @@ -27,9 +27,8 @@ String testLikelySubtags(String jsonEncoded) {
} catch (error) {
outputLine.addAll({
'error_detail': '$localStr: $ testOption';
'unsupported': 'unsupported subtags',
'unsupported': error.toString(),
'error_type': 'unsupported',
'error': error.toString()
});
}
return jsonEncode(outputLine);
Expand Down

0 comments on commit f658c04

Please sign in to comment.