@brightspace-ui/intl 3.14.0 → 3.15.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/lib/common.js +3 -1
- package/lib/dateTime.js +14 -1
- package/lib/number.js +1 -0
- package/package.json +1 -1
package/lib/common.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export const defaultLocale = 'en';
|
|
2
|
-
export const supportedBaseLocales = ['ar', 'cy', 'da', 'de', 'en', 'es', 'fr', 'hi', 'ja', 'ko', 'nl', 'pt', 'sv', 'tr', 'zh'];
|
|
2
|
+
export const supportedBaseLocales = ['ar', 'cy', 'da', 'de', 'en', 'es', 'fr', 'hi', 'ja', 'ko', 'mi', 'nl', 'pt', 'sv', 'tr', 'zh'];
|
|
3
|
+
export const supportedLangpacks = ['ar', 'cy', 'da', 'de', 'en', 'en-gb', 'es', 'es-es', 'fr', 'fr-fr', 'fr-on', 'hi', 'ja', 'ko', 'mi', 'nl', 'pt', 'sv', 'tr', 'zh-cn', 'zh-tw'];
|
|
3
4
|
export const supportedLocalesDetails = [
|
|
4
5
|
{ code: 'ar-sa', name: 'العربية' },
|
|
5
6
|
{ code: 'cy-gb', name: 'Cymraeg (Y Deyrnas Unedig)' },
|
|
@@ -16,6 +17,7 @@ export const supportedLocalesDetails = [
|
|
|
16
17
|
{ code: 'hi-in', name: 'हिन्दी Hindi (India)' },
|
|
17
18
|
{ code: 'ja-jp', name: '日本語 (日本)' },
|
|
18
19
|
{ code: 'ko-kr', name: '한국어 (대한민국)' },
|
|
20
|
+
{ code: 'mi-nz', name: 'Māori (Aotearoa)' },
|
|
19
21
|
{ code: 'nl-nl', name: 'Nederlands (Nederland)' },
|
|
20
22
|
{ code: 'pt-br', name: 'Português (Brasil)' },
|
|
21
23
|
{ code: 'sv-se', name: 'Svenska (Sverige)' },
|
package/lib/dateTime.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { getDocumentLocaleSettings, getLanguage, merge } from './common.js';
|
|
2
2
|
|
|
3
|
+
// to-do: These should be based on region, not language
|
|
3
4
|
const hour24locales = ['cy', 'da', 'de', 'es', 'fr', 'nl', 'pt', 'sv', 'tr', 'zh'];
|
|
4
|
-
const mondayFirstDayLocales = ['cy', 'da', 'de', 'fr', 'hi', 'nl', 'sv', 'tr'];
|
|
5
|
+
const mondayFirstDayLocales = ['cy', 'da', 'de', 'fr', 'hi', 'mi', 'nl', 'sv', 'tr'];
|
|
5
6
|
|
|
6
7
|
// timezone abbreviations and offsets from https://www.timeanddate.com/time/zones/
|
|
7
8
|
const timezoneOffsetMap = {
|
|
@@ -825,6 +826,18 @@ export function getDateTimeDescriptor() {
|
|
|
825
826
|
days[0] = ['일요일', '월요일', '화요일', '수요일', '목요일', '금요일', '토요일'];
|
|
826
827
|
days[1] = days[2] = ['일', '월', '화', '수', '목', '금', '토'];
|
|
827
828
|
break;
|
|
829
|
+
case 'mi':
|
|
830
|
+
dateFormats = ['dddd, d MMMM y', 'd MMMM y', 'dd-MM-y', 'MMMM yyyy', 'd MMMM', 'd MMM'];
|
|
831
|
+
months = [
|
|
832
|
+
['Kohitātea', 'Huitanguru', 'Poutūterangi', 'Paengawhāwhā', 'Haratua', 'Pipiri', 'Hōngongoi', 'Hereturikōkā', 'Mahuru', 'Whiringa-ā-nuku', 'Whiringa-ā-rangi', 'Hakihea'],
|
|
833
|
+
['Kohi', 'Hui', 'Pou', 'Pae', 'Hara', 'Pipi', 'Hōngo', 'Here', 'Mahu', 'Nuku', 'Rangi', 'Haki']
|
|
834
|
+
];
|
|
835
|
+
days = [
|
|
836
|
+
['Rātapu', 'Rāhina', 'Rātū', 'Rāapa', 'Rāpare', 'Rāmere', 'Rāhoroi'],
|
|
837
|
+
['Tap', 'Hin', 'Tū', 'Apa', 'Par', 'Mer', 'Hor'],
|
|
838
|
+
['T', 'H', 'T', 'A', 'P', 'M', 'H']
|
|
839
|
+
];
|
|
840
|
+
break;
|
|
828
841
|
case 'nl':
|
|
829
842
|
dateFormats = ['dddd d MMMM yyyy', 'd MMMM yyyy', 'dd-MM-yyyy', 'MMMM yyyy', 'd MMMM', 'd MMM'];
|
|
830
843
|
dayPeriods = ['a.m.', 'p.m.'];
|
package/lib/number.js
CHANGED
package/package.json
CHANGED