We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0b85c0e commit 2720adbCopy full SHA for 2720adb
src/cldr/territory.js
@@ -1,15 +1,5 @@
1
import { cldr } from './info';
2
3
-function territoryFromName(name) {
4
- const parts = name.split("-");
5
- const length = parts.length;
6
-
7
- if (length > 1) {
8
- const territory = parts[ length - 1 ];
9
- return territory.toUpperCase();
10
- }
11
-}
12
13
function territoryFromName(name, identity) {
14
const likelySubtags = cldr.supplemental.likelySubtags;
15
let parts = name.split("-");
0 commit comments