@visulima/iso-locale 1.0.0-alpha.8 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +143 -0
- package/README.md +56 -2
- package/dist/countries.d.ts +3018 -116
- package/dist/countries.js +1 -1
- package/dist/currencies.d.ts +1002 -55
- package/dist/currencies.js +1 -1
- package/dist/index.d.ts +19 -10
- package/dist/index.js +1 -1
- package/dist/locale.d.ts +47 -36
- package/dist/locale.js +1 -1
- package/dist/packem_shared/convert6393To6391-D3AzU7ti.js +1 -0
- package/dist/regions.d.ts +1182 -47
- package/dist/regions.js +1 -1
- package/dist/timezones.d.ts +304 -37
- package/dist/timezones.js +1 -1
- package/dist/types.d.ts +53 -52
- package/package.json +31 -33
- package/dist/data/countries.d.ts +0 -2853
- package/dist/data/currencies.d.ts +0 -937
- package/dist/data/currency-symbol.d.ts +0 -7
- package/dist/data/iso-639-mapping.d.ts +0 -12
- package/dist/data/regions.d.ts +0 -7
- package/dist/data/timezones.d.ts +0 -6
- package/dist/packem_shared/iso6393To6391-r9ptGdfI.js +0 -1
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { CurrencySymbolEntry } from "../types.d.ts";
|
|
2
|
-
declare const currencySymbolMap: CurrencySymbolEntry[];
|
|
3
|
-
declare const getSymbolFromCurrency: (currencyCode: string) => string | undefined;
|
|
4
|
-
declare const getSafeSymbolFromCurrency: (currencyCode: string) => string;
|
|
5
|
-
declare const getNameFromCurrency: (currencyCode: string) => string | undefined;
|
|
6
|
-
declare const getSafeNameFromCurrency: (currencyCode: string) => string;
|
|
7
|
-
export { currencySymbolMap, getNameFromCurrency, getSafeNameFromCurrency, getSafeSymbolFromCurrency, getSymbolFromCurrency };
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Converts ISO 639-3 (3-letter) code to ISO 639-1 (2-letter) code.
|
|
3
|
-
* @param iso6393 ISO 639-3 language code (e.g., "eng")
|
|
4
|
-
* @returns ISO 639-1 code (e.g., "en") or undefined if not found
|
|
5
|
-
*/
|
|
6
|
-
export declare const iso6393To6391: (iso6393: string) => string | undefined;
|
|
7
|
-
/**
|
|
8
|
-
* Gets all ISO 639-1 codes from ISO 639-3 codes.
|
|
9
|
-
* @param iso6393Codes Array of ISO 639-3 codes
|
|
10
|
-
* @returns Array of ISO 639-1 codes (filtered to only valid mappings)
|
|
11
|
-
*/
|
|
12
|
-
export declare const convert6393To6391: (iso6393Codes: string[]) => string[];
|
package/dist/data/regions.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { Region } from "../types.d.ts";
|
|
2
|
-
/**
|
|
3
|
-
* Country to region mapping based on UN geoscheme
|
|
4
|
-
* Maps ISO 3166-1 alpha-2 country codes to their UN geoscheme regions
|
|
5
|
-
*/
|
|
6
|
-
declare const countryRegions: Record<string, Region>;
|
|
7
|
-
export default countryRegions;
|
package/dist/data/timezones.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var r=Object.defineProperty;var n=(a,s)=>r(a,"name",{value:s,configurable:!0});var t=Object.defineProperty,o=n((a,s)=>t(a,"name",{value:s,configurable:!0}),"a");const e={afr:"af",amh:"am",ara:"ar",asm:"as",aze:"az",ben:"bn",ber:"ber",bis:"bi",bjz:"bjz",bnt:"bnt",bos:"bs",bul:"bg",bwg:"bwg",cal:"cal",cat:"ca",ces:"cs",cha:"ch",cor:"kw",cos:"co",cym:"cy",dan:"da",deu:"de",div:"dv",dzo:"dz",ell:"el",eng:"en",est:"et",eus:"eu",fao:"fo",fil:"tl",fin:"fin",fra:"fr",gil:"gil",gla:"gd",gle:"ga",glg:"gl",gsw:"gsw",guj:"gu",hau:"ha",heb:"he",hin:"hi",hrv:"hr",hun:"hu",hye:"hy",ibo:"ig",ind:"id",isl:"is",ita:"it",jpn:"ja",kan:"kn",kat:"ka",kck:"kck",khi:"khi",khm:"km",kon:"kg",kor:"ko",lao:"lo",lav:"lv",lin:"ln",lit:"lt",lua:"lua",mah:"mh",mai:"mai",mal:"ml",mar:"mr",mfe:"mfe",mkd:"mk",mlt:"mt",mon:"mn",mri:"mi",msa:"ms",mya:"my",nau:"na",nbl:"nr",ndc:"ndc",nde:"nd",nep:"ne",niu:"niu",nld:"nl",nor:"no",nso:"ns",nya:"ny",ori:"or",pan:"pa",pau:"pau",pol:"pl",por:"pt",pov:"pov",prs:"prs",pus:"ps",rar:"rar",roh:"rm",ron:"ro",run:"rn",rus:"ru",sag:"sg",sin:"si",slk:"sk",slv:"sl",smo:"sm",sna:"sn",sot:"st",spa:"es",sqi:"sq",srp:"sr",ssw:"ss",swa:"sw",swe:"sv",tam:"ta",tel:"te",tet:"tet",tgk:"tg",tha:"th",toi:"toi",ton:"to",tsn:"tn",tso:"ts",tuk:"tk",tur:"tr",tvl:"tvl",uig:"ug",ukr:"uk",urd:"ur",vie:"vi",xho:"xh",yor:"yo",zho:"zh",zul:"zu"},i=o(a=>e[a.toLowerCase()],"iso6393To6391"),m=o(a=>a.map(s=>i(s)).filter(s=>s!==void 0),"convert6393To6391");export{m as convert6393To6391,i as iso6393To6391};
|