@brightspace-ui/core 2.92.0 → 2.93.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.
|
@@ -80,7 +80,8 @@ class DemoPage extends LitElement {
|
|
|
80
80
|
const classes = {
|
|
81
81
|
'no-scroll': this._noScroll
|
|
82
82
|
};
|
|
83
|
-
|
|
83
|
+
let selectedLanguageCode = getDocumentLocaleSettings().language;
|
|
84
|
+
if (selectedLanguageCode === 'en') selectedLanguageCode = 'en-us';
|
|
84
85
|
let foundSelected = false;
|
|
85
86
|
const languageOptions = supportedLocalesDetails.map((l) => {
|
|
86
87
|
const selected = !foundSelected && l.code.startsWith(selectedLanguageCode);
|
package/lang/en-gb.js
ADDED
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
"components.alert.close": "Close Alert",
|
|
3
|
+
"components.breadcrumbs.breadcrumb": "Breadcrumb",
|
|
4
|
+
"components.calendar.notSelected": "Not Selected.",
|
|
5
|
+
"components.calendar.selected": "Selected.",
|
|
6
|
+
"components.calendar.show": "Show {month}",
|
|
7
|
+
"components.count-badge.plus" : "{number}+",
|
|
8
|
+
"components.dialog.close": "Close this dialog",
|
|
9
|
+
"components.dropdown.close": "Close",
|
|
10
|
+
"components.filter.activeFilters": "Active Filters:",
|
|
11
|
+
"components.filter.clear": "Clear",
|
|
12
|
+
"components.filter.clearAll": "Clear All",
|
|
13
|
+
"components.filter.clearAllAnnounce": "Clearing all filters",
|
|
14
|
+
"components.filter.clearAllAnnounceOverride": "Clearing all filters for: {filterText}",
|
|
15
|
+
"components.filter.clearAllDescription": "Clear all filters",
|
|
16
|
+
"components.filter.clearAllDescriptionOverride": "Clear all filters for: {filterText}",
|
|
17
|
+
"components.filter.clearAnnounce": "Clearing filters for: {filterName}",
|
|
18
|
+
"components.filter.clearDescription": "Clear filters for: {filterName}",
|
|
19
|
+
"components.filter.loading": "Loading filters",
|
|
20
|
+
"components.filter.filterCountDescription": "{number, plural, =0 {No filters applied.} one {{number} filter applied.} other {{number} filters applied.}}",
|
|
21
|
+
"components.filter.filters": "Filters",
|
|
22
|
+
"components.filter.noFilters": "No available filters",
|
|
23
|
+
"components.filter.searchResults": "{number, plural, =0 {No search results} one {{number} search result} other {{number} search results}}",
|
|
24
|
+
"components.filter.singleDimensionDescription": "Filter by: {filterName}",
|
|
25
|
+
"components.form-element.defaultError": "{label} is invalid.",
|
|
26
|
+
"components.form-element.defaultFieldLabel": "Field",
|
|
27
|
+
"components.form-element.input.email.typeMismatch": "Email is not valid",
|
|
28
|
+
"components.form-element.input.number.rangeError": "{minExclusive, select, true {{maxExclusive, select, true {Number must be greater than {min} and less than {max}.} other {Number must be greater than {min} and less than or equal to {max}.}}} other {{maxExclusive, select, true {Number must be greater than or equal to {min} and less than {max}.} other {Number must be greater than or equal to {min} and less than or equal to {max}.}}}}",
|
|
29
|
+
"components.form-element.input.number.rangeOverflow": "{maxExclusive, select, true {Number must be less than {max}.} other {Number must be less than or equal to {max}.}}",
|
|
30
|
+
"components.form-element.input.number.rangeUnderflow": "{minExclusive, select, true {Number must be greater than {min}.} other {Number must be greater than or equal to {min}.}}",
|
|
31
|
+
"components.form-element.input.text.tooShort": "{label} must be at least {minlength} characters",
|
|
32
|
+
"components.form-element.input.url.typeMismatch": "URL is not valid",
|
|
33
|
+
"components.form-element.valueMissing": "{label} is required.",
|
|
34
|
+
"components.form-error-summary.errorSummary": "{count, plural, one {There was {count} error found in the information you submitted} other {There were {count} errors found in the information you submitted}}",
|
|
35
|
+
"components.input-color.backgroundColor": "Background Colour",
|
|
36
|
+
"components.input-color.foregroundColor": "Foreground Colour",
|
|
37
|
+
"components.input-color.none": "None",
|
|
38
|
+
"components.input-date-range.endDate": "End Date",
|
|
39
|
+
"components.input-date-range.errorBadInput": "{startLabel} must be before {endLabel}",
|
|
40
|
+
"components.input-date-range.startDate": "Start Date",
|
|
41
|
+
"components.input-date-time-range-to.to": "to",
|
|
42
|
+
"components.input-date-time-range.endDate": "End Date",
|
|
43
|
+
"components.input-date-time-range.errorBadInput": "{startLabel} must be before {endLabel}",
|
|
44
|
+
"components.input-date-time-range.startDate": "Start Date",
|
|
45
|
+
"components.input-date-time.date": "Date",
|
|
46
|
+
"components.input-date-time.errorMaxDateOnly": "Date must be before {maxDate}",
|
|
47
|
+
"components.input-date-time.errorMinDateOnly": "Date must be after {minDate}",
|
|
48
|
+
"components.input-date-time.errorOutsideRange": "Date must be between {minDate} and {maxDate}",
|
|
49
|
+
"components.input-date-time.time": "Time",
|
|
50
|
+
"components.input-date.clear": "Clear",
|
|
51
|
+
"components.input-date.errorMaxDateOnly": "Date must be before {maxDate}",
|
|
52
|
+
"components.input-date.errorMinDateOnly": "Date must be after {minDate}",
|
|
53
|
+
"components.input-date.errorOutsideRange": "Date must be between {minDate} and {maxDate}",
|
|
54
|
+
"components.input-date.openInstructions": "Use date format {format}. Arrow down or press enter to access mini-calendar.",
|
|
55
|
+
"components.input-date.now": "Now",
|
|
56
|
+
"components.input-date.today": "Today",
|
|
57
|
+
"components.input-number.hintInteger": "This field only accepts integer values (no decimals)",
|
|
58
|
+
"components.input-number.hintDecimalDuplicate": "There's already a decimal in this number",
|
|
59
|
+
"components.input-number.hintDecimalIncorrectComma": "To add a decimal use the comma \",\" character",
|
|
60
|
+
"components.input-number.hintDecimalIncorrectPeriod": "To add a decimal use the period \".\" character",
|
|
61
|
+
"components.input-search.clear": "Clear Search",
|
|
62
|
+
"components.input-search.defaultPlaceholder": "Search...",
|
|
63
|
+
"components.input-search.search": "Search",
|
|
64
|
+
"components.input-time-range.endTime": "End Time",
|
|
65
|
+
"components.input-time-range.errorBadInput": "{startLabel} must be before {endLabel}",
|
|
66
|
+
"components.input-time-range.startTime": "Start Time",
|
|
67
|
+
"components.interactive.instructions": "Press Enter to interact, Escape to exit",
|
|
68
|
+
"components.list-controls.label": "Actions for list",
|
|
69
|
+
"components.list-item-drag-handle.default": "Reorder item action for {name}",
|
|
70
|
+
"components.list-item-drag-handle.keyboard": "Reorder item, current position {currentPosition} out of {size}. To move this item, press up or down arrows.",
|
|
71
|
+
"components.list-item-tooltip.title": "Keyboard Navigation for Lists:",
|
|
72
|
+
"components.list-item-tooltip.enter-key": "Enter",
|
|
73
|
+
"components.list-item-tooltip.enter-desc": "Activate the focused option.",
|
|
74
|
+
"components.list-item-tooltip.up-down-key": "Up/Down",
|
|
75
|
+
"components.list-item-tooltip.up-down-desc": "Move focus between list items.",
|
|
76
|
+
"components.list-item-tooltip.left-right-key": "Left/Right",
|
|
77
|
+
"components.list-item-tooltip.left-right-desc": "Move focus within current item.",
|
|
78
|
+
"components.list-item-tooltip.page-up-down-key": "Page Up/Down",
|
|
79
|
+
"components.list-item-tooltip.page-up-down-desc": "Move focus 5 items at a time.",
|
|
80
|
+
"components.list-item-drag-handle-tooltip.title": "Keyboard Controls for Reordering:",
|
|
81
|
+
"components.list-item-drag-handle-tooltip.enter-key": "Enter",
|
|
82
|
+
"components.list-item-drag-handle-tooltip.enter-desc": "Toggle keyboard reorder mode.",
|
|
83
|
+
"components.list-item-drag-handle-tooltip.up-down-key": "Up/Down",
|
|
84
|
+
"components.list-item-drag-handle-tooltip.up-down-desc": "Move item up or down in the list.",
|
|
85
|
+
"components.list-item-drag-handle-tooltip.left-right-key": "Left/Right",
|
|
86
|
+
"components.list-item-drag-handle-tooltip.left-right-desc": "Change the nesting level.",
|
|
87
|
+
"components.menu-item-return.return": "Return to previous menu.",
|
|
88
|
+
"components.menu-item-return.returnCurrentlyShowing": "Return to previous menu. You are viewing {menuTitle}.",
|
|
89
|
+
"components.meter-mixin.commaSeperatedAria": "{term1}, {term2}",
|
|
90
|
+
"components.meter-mixin.fraction": "{x}∕{y}",
|
|
91
|
+
"components.meter-mixin.progressIndicator": "Progress Indicator",
|
|
92
|
+
"components.more-less.less": "less",
|
|
93
|
+
"components.more-less.more": "more",
|
|
94
|
+
"components.object-property-list.item-placeholder-text": "Placeholder Item",
|
|
95
|
+
"components.overflow-group.moreActions": "More Actions",
|
|
96
|
+
"components.pager-load-more.action": "Load {count} More",
|
|
97
|
+
"components.pager-load-more.info": "{totalCount, plural, one {{showingCount} of {totalCountFormatted} item} other {{showingCount} of {totalCountFormatted} items}}",
|
|
98
|
+
"components.pager-load-more.status-loading": "Loading more items",
|
|
99
|
+
"components.selection.action-hint": "Select an item to perform this action.",
|
|
100
|
+
"components.selection.select-all": "Select All",
|
|
101
|
+
"components.selection.select-all-items": "Select All {count} Items",
|
|
102
|
+
"components.selection.selected": "{count} selected",
|
|
103
|
+
"components.selection.selected-plus": "{count}+ selected",
|
|
104
|
+
"components.selection-controls.label": "Actions for selection",
|
|
105
|
+
"components.switch.visible": "Visible",
|
|
106
|
+
"components.switch.visibleWithPeriod": "Visible.",
|
|
107
|
+
"components.switch.hidden": "Hidden",
|
|
108
|
+
"components.switch.conditions": "Conditions must be met",
|
|
109
|
+
"components.tabs.next": "Scroll Forward",
|
|
110
|
+
"components.tabs.previous": "Scroll Backward",
|
|
111
|
+
"components.tag-list.clear": "Click, press backspace, or press delete key to remove item {value}",
|
|
112
|
+
"components.tag-list.clear-all": "Clear All",
|
|
113
|
+
"components.tag-list.cleared-all": "Removed all tag list items",
|
|
114
|
+
"components.tag-list.cleared-item": "Removed tag list item {value}",
|
|
115
|
+
"components.tag-list.interactive-label": "Tag List, {count} items",
|
|
116
|
+
"components.tag-list.num-hidden": "+ {count} more",
|
|
117
|
+
"components.tag-list.role-description": "Tag List",
|
|
118
|
+
"components.tag-list.show-less": "Show Less",
|
|
119
|
+
"components.tag-list.show-more-description": "Select to show hidden tag list items",
|
|
120
|
+
"components.tag-list-item.role-description": "Tag",
|
|
121
|
+
"components.tag-list-item.tooltip-arrow-keys": "Arrow Keys",
|
|
122
|
+
"components.tag-list-item.tooltip-arrow-keys-desc": "Move between tags",
|
|
123
|
+
"components.tag-list-item.tooltip-delete-key": "Backspace/Delete",
|
|
124
|
+
"components.tag-list-item.tooltip-delete-key-desc": "Delete the focused tag",
|
|
125
|
+
"components.tag-list-item.tooltip-title": "Keyboard Controls",
|
|
126
|
+
"templates.primary-secondary.adjustableSplitView": "Adjustable Split View",
|
|
127
|
+
"templates.primary-secondary.keyboardHorizontal": "Arrow left or right to adjust the size of the view panels",
|
|
128
|
+
"templates.primary-secondary.keyboardVertical": "Arrow up or down to adjust the size of the view panels"
|
|
129
|
+
};
|
|
@@ -2,7 +2,7 @@ import { getLocalizeOverrideResources } from '../helpers/getLocalizeResources.js
|
|
|
2
2
|
import { LocalizeMixin } from './localize-mixin.js';
|
|
3
3
|
|
|
4
4
|
const fallbackLang = 'en';
|
|
5
|
-
const supportedLangpacks = ['ar', 'cy', 'da', 'de', 'en', 'es', 'es-es', 'fr', 'fr-fr', 'fr-on', 'hi', 'ja', 'ko', 'nl', 'pt', 'sv', 'tr', 'zh-cn', 'zh-tw'];
|
|
5
|
+
const supportedLangpacks = ['ar', 'cy', 'da', 'de', 'en', 'en-gb', 'es', 'es-es', 'fr', 'fr-fr', 'fr-on', 'hi', 'ja', 'ko', 'nl', 'pt', 'sv', 'tr', 'zh-cn', 'zh-tw'];
|
|
6
6
|
|
|
7
7
|
export const LocalizeDynamicMixin = superclass => class extends LocalizeMixin(superclass) {
|
|
8
8
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@brightspace-ui/core",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.93.0",
|
|
4
4
|
"description": "A collection of accessible, free, open-source web components for building Brightspace applications",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": "https://github.com/BrightspaceUI/core.git",
|