@brightspace-ui/intl
Advanced tools
Comparing version 3.8.0 to 3.9.0
export const defaultLocale = 'en'; | ||
export const supportedBaseLocales = ['ar', 'cy', 'da', 'de', 'en', 'es', 'fr', 'ja', 'ko', 'nl', 'pt', 'sv', 'tr', 'zh']; | ||
export const supportedBaseLocales = ['ar', 'cy', 'da', 'de', 'en', 'es', 'fr', 'hi', 'ja', 'ko', 'nl', 'pt', 'sv', 'tr', 'zh']; | ||
export const supportedLocales = [ | ||
@@ -16,2 +16,3 @@ 'ar-sa', | ||
'fr-on', | ||
'hi-in', | ||
'ja-jp', | ||
@@ -18,0 +19,0 @@ 'ko-kr', |
import { getDocumentLocaleSettings, getLanguage, merge } from './common.js'; | ||
const hour24locales = ['cy', 'da', 'de', 'es', 'fr', 'nl', 'pt', 'sv', 'tr', 'zh']; | ||
const mondayFirstDayLocales = ['cy', 'da', 'de', 'fr', 'nl', 'sv', 'tr']; | ||
const mondayFirstDayLocales = ['cy', 'da', 'de', 'fr', 'hi', 'nl', 'sv', 'tr']; | ||
@@ -802,2 +802,15 @@ // timezone abbreviations and offsets from https://www.timeanddate.com/time/zones/ | ||
break; | ||
case 'hi': | ||
dateFormats = ['dddd, d MMMM yyyy', 'd MMMM yyyy', 'dd-MM-yyyy', 'MMMM yyyy', 'd MMMM', 'd MMM']; | ||
dayPeriods = ['पूर्वाह्न', 'अपराह्न']; | ||
months = [ | ||
['जनवरी', 'फरवरी', 'मार्च', 'अप्रैल', 'मई', 'जून', 'जुलाई', 'अगस्त', 'सितंबर', 'अक्टूबर', 'नवंबर', 'दिसंबर'], | ||
['जन', 'फर', 'मार्च', 'अप्रैल', 'मई', 'जून', 'जुलाई', 'अग', 'सितं', 'अक्टू', 'नवं', 'दिसं'] | ||
]; | ||
days = [ | ||
['रविवार', 'सोमवार', 'मंगलवार', 'बुधवार', 'गुरूवार', 'शुक्रवार', 'शनिवार'], | ||
['रवि', 'सोम', 'मंगल', 'बुध', 'गुरु', 'शुक्र', 'शनि'], | ||
['र', 'सो', 'मं', 'बु', 'गु', 'शु', 'श'] | ||
]; | ||
break; | ||
case 'ja': | ||
@@ -804,0 +817,0 @@ dateFormats = ['yyyy年M月d日', 'yyyy年M月d日', 'yyyy/MM/dd', 'yyyy年M月', 'M月d日', 'M月d日']; |
@@ -42,2 +42,6 @@ import { formatNumber } from './number.js'; | ||
break; | ||
case 'hi': | ||
val.bytes = 'बाइट्स'; | ||
val.byte = 'बाइट'; | ||
break; | ||
case 'ja': | ||
@@ -44,0 +48,0 @@ val.bytes = val.byte = 'バイト'; |
@@ -113,2 +113,3 @@ import { | ||
case 'es': | ||
case 'hi': | ||
case 'ja': | ||
@@ -115,0 +116,0 @@ case 'pt': |
{ | ||
"name": "@brightspace-ui/intl", | ||
"version": "3.8.0", | ||
"version": "3.9.0", | ||
"description": "Internationalization APIs for number, date, time and file size formatting and parsing in D2L Brightspace.", | ||
@@ -41,4 +41,4 @@ "main": "lib/number.js", | ||
"chai": "^4", | ||
"concurrently": "^6", | ||
"eslint": "^7", | ||
"concurrently": "^7", | ||
"eslint": "^8", | ||
"eslint-config-brightspace": "^0.16", | ||
@@ -49,4 +49,4 @@ "eslint-plugin-html": "^6", | ||
"mocha": "^9", | ||
"mocha-headless-chrome": "^3" | ||
"mocha-headless-chrome": "^4" | ||
} | ||
} |
71370
1580