@lion/ui 0.0.2 → 0.0.4
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/components/core/src/SlotMixin.js +180 -42
- package/components/core/test/SlotMixin.test.js +355 -145
- package/components/core/types/SlotMixinTypes.ts +12 -1
- package/components/input-tel/src/LionInputTel.js +0 -9
- package/components/input-tel-dropdown/src/LionInputTelDropdown.js +32 -29
- package/components/input-tel-dropdown/test-suites/LionInputTelDropdown.suite.js +5 -6
- package/components/localize/src/number/parseNumber.js +15 -36
- package/components/localize/test/number/parseNumber.test.js +3 -12
- package/components/localize/types/LocalizeMixinTypes.ts +1 -1
- package/custom-elements.json +1435 -133
- package/dist-types/components/calendar/src/LionCalendar.d.ts +1 -37
- package/dist-types/components/calendar/src/LionCalendar.d.ts.map +1 -1
- package/dist-types/components/core/src/SlotMixin.d.ts +2 -0
- package/dist-types/components/core/src/SlotMixin.d.ts.map +1 -1
- package/dist-types/components/core/test/SlotMixin.test.d.ts +1 -1
- package/dist-types/components/core/test/SlotMixin.test.d.ts.map +1 -1
- package/dist-types/components/core/types/SlotMixinTypes.d.ts +9 -1
- package/dist-types/components/core/types/SlotMixinTypes.d.ts.map +1 -1
- package/dist-types/components/input-amount/src/LionInputAmount.d.ts +1 -37
- package/dist-types/components/input-amount/src/LionInputAmount.d.ts.map +1 -1
- package/dist-types/components/input-date/src/LionInputDate.d.ts +1 -37
- package/dist-types/components/input-date/src/LionInputDate.d.ts.map +1 -1
- package/dist-types/components/input-datepicker/src/LionCalendarOverlayFrame.d.ts +1 -37
- package/dist-types/components/input-datepicker/src/LionCalendarOverlayFrame.d.ts.map +1 -1
- package/dist-types/components/input-email/src/LionInputEmail.d.ts +1 -37
- package/dist-types/components/input-email/src/LionInputEmail.d.ts.map +1 -1
- package/dist-types/components/input-iban/src/LionInputIban.d.ts +1 -37
- package/dist-types/components/input-iban/src/LionInputIban.d.ts.map +1 -1
- package/dist-types/components/input-tel/src/LionInputTel.d.ts +1 -42
- package/dist-types/components/input-tel/src/LionInputTel.d.ts.map +1 -1
- package/dist-types/components/input-tel-dropdown/src/LionInputTelDropdown.d.ts +14 -8
- package/dist-types/components/input-tel-dropdown/src/LionInputTelDropdown.d.ts.map +1 -1
- package/dist-types/components/input-tel-dropdown/test-suites/LionInputTelDropdown.suite.d.ts.map +1 -1
- package/dist-types/components/localize/src/LocalizeMixin.d.ts +1 -37
- package/dist-types/components/localize/src/LocalizeMixin.d.ts.map +1 -1
- package/dist-types/components/localize/src/number/parseNumber.d.ts.map +1 -1
- package/dist-types/components/localize/types/LocalizeMixinTypes.d.ts +1 -1
- package/dist-types/components/localize/types/LocalizeMixinTypes.d.ts.map +1 -1
- package/dist-types/components/pagination/src/LionPagination.d.ts +1 -37
- package/dist-types/components/pagination/src/LionPagination.d.ts.map +1 -1
- package/dist-types/components/progress-indicator/src/LionProgressIndicator.d.ts +1 -37
- package/dist-types/components/progress-indicator/src/LionProgressIndicator.d.ts.map +1 -1
- package/dist-types/exports/core.d.ts +1 -0
- package/dist-types/exports/core.d.ts.map +1 -1
- package/dist-types/exports/form-core.d.ts +2 -0
- package/dist-types/exports/form-core.d.ts.map +1 -1
- package/dist-types/exports/input-tel-dropdown.d.ts +2 -0
- package/dist-types/exports/input-tel-dropdown.d.ts.map +1 -1
- package/dist-types/exports/input-tel.d.ts +1 -0
- package/dist-types/exports/input-tel.d.ts.map +1 -1
- package/dist-types/exports/localize.d.ts +3 -0
- package/dist-types/exports/localize.d.ts.map +1 -1
- package/dist-types/exports/overlays.d.ts +4 -0
- package/dist-types/exports/overlays.d.ts.map +1 -1
- package/dist-types/tsconfig.tsbuildinfo +1 -1
- package/docs/components/accordion/index.md +3 -0
- package/docs/components/accordion/overview.md +129 -0
- package/docs/components/accordion/reference.md +47 -0
- package/docs/components/accordion/use-cases.md +252 -0
- package/docs/components/button/examples.md +30 -0
- package/docs/components/button/index.md +3 -0
- package/docs/components/button/overview.md +30 -0
- package/docs/components/button/src/icon.svg.js +5 -0
- package/docs/components/button/use-cases.md +106 -0
- package/docs/components/calendar/index.md +3 -0
- package/docs/components/calendar/overview.md +49 -0
- package/docs/components/calendar/use-cases.md +192 -0
- package/docs/components/checkbox-group/index.md +3 -0
- package/docs/components/checkbox-group/overview.md +40 -0
- package/docs/components/checkbox-group/use-cases.md +256 -0
- package/docs/components/collapsible/assets/CustomCollapsible.js +113 -0
- package/docs/components/collapsible/assets/applyDemoCollapsibleStyles.js +37 -0
- package/docs/components/collapsible/examples.md +83 -0
- package/docs/components/collapsible/index.md +3 -0
- package/docs/components/collapsible/overview.md +39 -0
- package/docs/components/collapsible/use-cases.md +79 -0
- package/docs/components/combobox/examples.md +153 -0
- package/docs/components/combobox/index.md +3 -0
- package/docs/components/combobox/overview.md +51 -0
- package/docs/components/combobox/src/LinkMixin.js +60 -0
- package/docs/components/combobox/src/demo-selection-display.js +191 -0
- package/docs/components/combobox/src/gh-combobox/gh-button.js +69 -0
- package/docs/components/combobox/src/gh-combobox/gh-combobox.js +508 -0
- package/docs/components/combobox/src/google-combobox/assets/google-clear-icon.js +9 -0
- package/docs/components/combobox/src/google-combobox/assets/google-search-icon.js +9 -0
- package/docs/components/combobox/src/google-combobox/assets/google-voice-search-icon.js +19 -0
- package/docs/components/combobox/src/google-combobox/assets/googlelogo_color_272x92dp.png +0 -0
- package/docs/components/combobox/src/google-combobox/google-combobox.js +460 -0
- package/docs/components/combobox/src/lazyRender.js +29 -0
- package/docs/components/combobox/src/levenshtein.js +95 -0
- package/docs/components/combobox/src/md-combobox/MdFieldMixin.js +341 -0
- package/docs/components/combobox/src/md-combobox/md-combobox.js +89 -0
- package/docs/components/combobox/src/md-combobox/md-input.js +5 -0
- package/docs/components/combobox/src/md-combobox/style/load-roboto.js +6 -0
- package/docs/components/combobox/src/md-combobox/style/md-ripple.js +81 -0
- package/docs/components/combobox/src/wa-combobox/wa-combobox.js +368 -0
- package/docs/components/combobox/use-cases.md +377 -0
- package/docs/components/dialog/index.md +3 -0
- package/docs/components/dialog/overview.md +63 -0
- package/docs/components/dialog/src/demo-dialog-style.js +3 -0
- package/docs/components/dialog/src/demoStyle.js +39 -0
- package/docs/components/dialog/src/slots-dialog-content.js +32 -0
- package/docs/components/dialog/src/styled-dialog-content.js +38 -0
- package/docs/components/dialog/use-cases.md +154 -0
- package/docs/components/drawer/index.md +3 -0
- package/docs/components/drawer/overview.md +68 -0
- package/docs/components/drawer/src/demoStyle.js +71 -0
- package/docs/components/drawer/use-cases.md +194 -0
- package/docs/components/fieldset/index.md +3 -0
- package/docs/components/fieldset/overview.md +49 -0
- package/docs/components/fieldset/use-cases.md +185 -0
- package/docs/components/form/index.md +3 -0
- package/docs/components/form/overview.md +43 -0
- package/docs/components/form/use-cases.md +72 -0
- package/docs/components/icon/assets/bugs/bug01.svg.js +2 -0
- package/docs/components/icon/assets/bugs/bug02.svg.js +2 -0
- package/docs/components/icon/assets/bugs/bug05.svg.js +2 -0
- package/docs/components/icon/assets/bugs/bug06.svg.js +2 -0
- package/docs/components/icon/assets/bugs/bug08.svg.js +2 -0
- package/docs/components/icon/assets/bugs/bug12.svg.js +2 -0
- package/docs/components/icon/assets/bugs/bug19.svg.js +2 -0
- package/docs/components/icon/assets/bugs/bug23.svg.js +2 -0
- package/docs/components/icon/assets/bugs/bug24.svg.js +2 -0
- package/docs/components/icon/assets/iconset-bugs.js +11 -0
- package/docs/components/icon/assets/iconset-misc.js +3 -0
- package/docs/components/icon/assets/iconset-space.js +31 -0
- package/docs/components/icon/assets/misc/arrowLeft.svg.js +6 -0
- package/docs/components/icon/assets/space/aliens-spaceship.svg.js +2 -0
- package/docs/components/icon/assets/space/meteor.svg.js +2 -0
- package/docs/components/icon/assets/space/moon-flag.svg.js +2 -0
- package/docs/components/icon/assets/space/moon.svg.js +2 -0
- package/docs/components/icon/assets/space/night.svg.js +2 -0
- package/docs/components/icon/assets/space/orbit.svg.js +2 -0
- package/docs/components/icon/assets/space/planet.svg.js +2 -0
- package/docs/components/icon/assets/space/robot.svg.js +2 -0
- package/docs/components/icon/assets/space/rocket.svg.js +2 -0
- package/docs/components/icon/assets/space/satellite.svg.js +2 -0
- package/docs/components/icon/assets/space/signal.svg.js +2 -0
- package/docs/components/icon/assets/space/space-helmet.svg.js +2 -0
- package/docs/components/icon/assets/space/sun.svg.js +2 -0
- package/docs/components/icon/assets/space/telescope.svg.js +2 -0
- package/docs/components/icon/index.md +3 -0
- package/docs/components/icon/overview.md +40 -0
- package/docs/components/icon/use-cases.md +93 -0
- package/docs/components/index.md +7 -0
- package/docs/components/input/index.md +3 -0
- package/docs/components/input/overview.md +36 -0
- package/docs/components/input/use-cases.md +77 -0
- package/docs/components/input-amount/index.md +3 -0
- package/docs/components/input-amount/overview.md +49 -0
- package/docs/components/input-amount/use-cases.md +122 -0
- package/docs/components/input-date/index.md +3 -0
- package/docs/components/input-date/overview.md +39 -0
- package/docs/components/input-date/use-cases.md +83 -0
- package/docs/components/input-datepicker/index.md +3 -0
- package/docs/components/input-datepicker/overview.md +42 -0
- package/docs/components/input-datepicker/use-cases.md +78 -0
- package/docs/components/input-email/index.md +3 -0
- package/docs/components/input-email/overview.md +32 -0
- package/docs/components/input-email/use-cases.md +48 -0
- package/docs/components/input-iban/index.md +3 -0
- package/docs/components/input-iban/overview.md +37 -0
- package/docs/components/input-iban/use-cases.md +102 -0
- package/docs/components/input-range/index.md +3 -0
- package/docs/components/input-range/overview.md +34 -0
- package/docs/components/input-range/use-cases.md +108 -0
- package/docs/components/input-stepper/index.md +3 -0
- package/docs/components/input-stepper/overview.md +36 -0
- package/docs/components/input-stepper/use-cases.md +41 -0
- package/docs/components/input-tel/index.md +3 -0
- package/docs/components/input-tel/overview.md +62 -0
- package/docs/components/input-tel/src/h-region-code-table.js +109 -0
- package/docs/components/input-tel/use-cases.md +307 -0
- package/docs/components/input-tel-dropdown/examples.md +32 -0
- package/docs/components/input-tel-dropdown/index.md +3 -0
- package/docs/components/input-tel-dropdown/overview.md +38 -0
- package/docs/components/input-tel-dropdown/src/intl-input-tel-dropdown.js +127 -0
- package/docs/components/input-tel-dropdown/use-cases.md +159 -0
- package/docs/components/listbox/index.md +3 -0
- package/docs/components/listbox/overview.md +42 -0
- package/docs/components/listbox/src/listboxData.js +65 -0
- package/docs/components/listbox/use-cases.md +147 -0
- package/docs/components/pagination/index.md +3 -0
- package/docs/components/pagination/overview.md +29 -0
- package/docs/components/pagination/use-cases.md +99 -0
- package/docs/components/progress-indicator/assets/my-determinate-progress-bar.js +30 -0
- package/docs/components/progress-indicator/assets/my-indeterminate-progress-spinner.js +55 -0
- package/docs/components/progress-indicator/examples.md +125 -0
- package/docs/components/progress-indicator/index.md +3 -0
- package/docs/components/progress-indicator/overview.md +36 -0
- package/docs/components/radio-group/index.md +3 -0
- package/docs/components/radio-group/overview.md +46 -0
- package/docs/components/radio-group/use-cases.md +140 -0
- package/docs/components/select/index.md +3 -0
- package/docs/components/select/overview.md +44 -0
- package/docs/components/select/use-cases.md +55 -0
- package/docs/components/select-rich/examples.md +31 -0
- package/docs/components/select-rich/index.md +3 -0
- package/docs/components/select-rich/overview.md +46 -0
- package/docs/components/select-rich/src/flagStyles.js +1250 -0
- package/docs/components/select-rich/src/flags.png +0 -0
- package/docs/components/select-rich/src/flags@2x.png +0 -0
- package/docs/components/select-rich/src/intl-select-rich.js +194 -0
- package/docs/components/select-rich/src/regionMetaList.js +1717 -0
- package/docs/components/select-rich/use-cases.md +370 -0
- package/docs/components/steps/index.md +3 -0
- package/docs/components/steps/overview.md +63 -0
- package/docs/components/steps/use-cases.md +163 -0
- package/docs/components/switch/index.md +3 -0
- package/docs/components/switch/overview.md +75 -0
- package/docs/components/switch/reference.md +39 -0
- package/docs/components/switch/use-cases.md +76 -0
- package/docs/components/tabs/examples.md +23 -0
- package/docs/components/tabs/index.md +3 -0
- package/docs/components/tabs/overview.md +48 -0
- package/docs/components/tabs/src/lea-tab-panel.js +24 -0
- package/docs/components/tabs/src/lea-tab.js +45 -0
- package/docs/components/tabs/src/lea-tabs.js +28 -0
- package/docs/components/tabs/use-cases.md +219 -0
- package/docs/components/textarea/index.md +3 -0
- package/docs/components/textarea/overview.md +35 -0
- package/docs/components/textarea/use-cases.md +95 -0
- package/docs/components/tooltip/examples.md +39 -0
- package/docs/components/tooltip/index.md +3 -0
- package/docs/components/tooltip/overview.md +44 -0
- package/docs/components/tooltip/use-cases.md +208 -0
- package/docs/fundamentals/index.md +19 -0
- package/docs/fundamentals/node-tools/babel-plugin-extend-docs/index.md +1 -0
- package/docs/fundamentals/node-tools/babel-plugin-extend-docs/overview.md +233 -0
- package/docs/fundamentals/node-tools/index.md +1 -0
- package/docs/fundamentals/node-tools/providence-analytics/LocalConfiguration.md +68 -0
- package/docs/fundamentals/node-tools/providence-analytics/QueryResult.md +111 -0
- package/docs/fundamentals/node-tools/providence-analytics/analyzer.md +69 -0
- package/docs/fundamentals/node-tools/providence-analytics/assets/_mermaid.svg.js +1202 -0
- package/docs/fundamentals/node-tools/providence-analytics/dashboard.md +22 -0
- package/docs/fundamentals/node-tools/providence-analytics/index.md +1 -0
- package/docs/fundamentals/node-tools/providence-analytics/overview.md +192 -0
- package/docs/fundamentals/node-tools/publish-docs/index.md +1 -0
- package/docs/fundamentals/node-tools/publish-docs/overview.md +136 -0
- package/docs/fundamentals/node-tools/remark-extend/index.md +1 -0
- package/docs/fundamentals/node-tools/remark-extend/overview.md +274 -0
- package/docs/fundamentals/node-tools/rocket-preset-extend-lion-docs/index.md +1 -0
- package/docs/fundamentals/node-tools/rocket-preset-extend-lion-docs/overview.md +285 -0
- package/docs/fundamentals/rationales/TypeScript.md +18 -0
- package/docs/fundamentals/rationales/index.md +1 -0
- package/docs/fundamentals/rationales/side-effects.md +203 -0
- package/docs/fundamentals/rationales/versioning.md +35 -0
- package/docs/fundamentals/systems/core/index.md +3 -0
- package/docs/fundamentals/systems/core/overview.md +85 -0
- package/docs/fundamentals/systems/form/assets/FormatMixinDiagram-1.svg +1 -0
- package/docs/fundamentals/systems/form/assets/FormatMixinDiagram-2.svg +1 -0
- package/docs/fundamentals/systems/form/assets/FormatMixinDiagram-3.svg +84 -0
- package/docs/fundamentals/systems/form/assets/h-output.js +155 -0
- package/docs/fundamentals/systems/form/formatting-and-parsing.md +245 -0
- package/docs/fundamentals/systems/form/index.md +3 -0
- package/docs/fundamentals/systems/form/interaction-states.md +177 -0
- package/docs/fundamentals/systems/form/model-value.md +35 -0
- package/docs/fundamentals/systems/form/overview.md +82 -0
- package/docs/fundamentals/systems/form/styling.md +101 -0
- package/docs/fundamentals/systems/form/use-cases.md +156 -0
- package/docs/fundamentals/systems/form/validate.md +929 -0
- package/docs/fundamentals/systems/icon/index.md +3 -0
- package/docs/fundamentals/systems/icon/overview.md +124 -0
- package/docs/fundamentals/systems/index.md +1 -0
- package/docs/fundamentals/systems/localize/assets/all-locales.js +437 -0
- package/docs/fundamentals/systems/localize/assets/en-AU.js +6 -0
- package/docs/fundamentals/systems/localize/assets/en-GB.js +6 -0
- package/docs/fundamentals/systems/localize/assets/en-US.js +6 -0
- package/docs/fundamentals/systems/localize/assets/en.js +4 -0
- package/docs/fundamentals/systems/localize/assets/nl-BE.js +6 -0
- package/docs/fundamentals/systems/localize/assets/nl-NL.js +6 -0
- package/docs/fundamentals/systems/localize/assets/nl.js +4 -0
- package/docs/fundamentals/systems/localize/dates.md +195 -0
- package/docs/fundamentals/systems/localize/index.md +3 -0
- package/docs/fundamentals/systems/localize/numbers.md +217 -0
- package/docs/fundamentals/systems/localize/overview.md +48 -0
- package/docs/fundamentals/systems/localize/rationale.md +62 -0
- package/docs/fundamentals/systems/localize/text.md +125 -0
- package/docs/fundamentals/systems/localize/use-cases.md +319 -0
- package/docs/fundamentals/systems/overlays/assets/applyDemoOverlayStyles.js +22 -0
- package/docs/fundamentals/systems/overlays/assets/demo-overlay-backdrop.js +48 -0
- package/docs/fundamentals/systems/overlays/assets/demo-overlay-system.js +42 -0
- package/docs/fundamentals/systems/overlays/assets/umbrella-form.js +133 -0
- package/docs/fundamentals/systems/overlays/configuration.md +453 -0
- package/docs/fundamentals/systems/overlays/form-integration.md +65 -0
- package/docs/fundamentals/systems/overlays/index.md +3 -0
- package/docs/fundamentals/systems/overlays/overview.md +118 -0
- package/docs/fundamentals/systems/overlays/rationale.md +232 -0
- package/docs/fundamentals/systems/overlays/scope.md +176 -0
- package/docs/fundamentals/systems/overlays/use-cases.md +699 -0
- package/docs/fundamentals/tools/ajax/assets/naga.json +9 -0
- package/docs/fundamentals/tools/ajax/assets/pabu.json +9 -0
- package/docs/fundamentals/tools/ajax/index.md +3 -0
- package/docs/fundamentals/tools/ajax/overview.md +128 -0
- package/docs/fundamentals/tools/ajax/use-cases.md +456 -0
- package/docs/fundamentals/tools/helpers/action-logger.md +165 -0
- package/docs/fundamentals/tools/helpers/index.md +3 -0
- package/docs/fundamentals/tools/helpers/overview.md +30 -0
- package/docs/fundamentals/tools/index.md +1 -0
- package/docs/fundamentals/tools/singleton-manager/index.md +3 -0
- package/docs/fundamentals/tools/singleton-manager/overview.md +304 -0
- package/docs/guides/how-to/create-a-custom-field.md +200 -0
- package/docs/guides/how-to/extend-a-native-input.md +66 -0
- package/docs/guides/how-to/get-started.md +77 -0
- package/docs/guides/how-to/index.md +1 -0
- package/docs/guides/index.md +34 -0
- package/docs/guides/principles/definitions-and-terms.md +41 -0
- package/docs/guides/principles/index.md +26 -0
- package/docs/guides/principles/scoped-elements.md +103 -0
- package/docs/guides/principles/styling.md +32 -0
- package/docs/guides/principles/subclasser-apis.md +28 -0
- package/docs/override.js +15 -0
- package/exports/core.js +2 -0
- package/exports/form-core.js +3 -0
- package/exports/input-tel-dropdown.js +3 -0
- package/exports/input-tel.js +2 -0
- package/exports/localize.js +4 -0
- package/exports/overlays.js +5 -0
- package/package.json +3 -2
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
# Systems >> Icon >> Overview ||10
|
|
2
|
+
|
|
3
|
+
The icon system provides a way of defining icon sets which are lazily loaded on demand when
|
|
4
|
+
icons are rendered on the page. This way icon imports do not block the initial render of your
|
|
5
|
+
application, and you don't need to worry about carefully coordinating the dynamic imports of your icons.
|
|
6
|
+
|
|
7
|
+
## Icon format
|
|
8
|
+
|
|
9
|
+
For security reasons, icons are defined using lit-html templates to guarantee XSS safety:
|
|
10
|
+
|
|
11
|
+
```js
|
|
12
|
+
import { html } from 'lit';
|
|
13
|
+
|
|
14
|
+
export default html` <svg focusable="false" ...>...</svg> `;
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
The icon can also be a function. In this case, it's possible to reuse the icons if a
|
|
18
|
+
rendering mechanism different from lit-html is used to process a string.
|
|
19
|
+
|
|
20
|
+
```js
|
|
21
|
+
export default tag => tag`
|
|
22
|
+
<svg focusable="false" ...>...</svg>
|
|
23
|
+
`;
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
This ensures the same version of lit-html and the icon system used. This is the recommended approach.
|
|
27
|
+
|
|
28
|
+
### Icon accessibility
|
|
29
|
+
|
|
30
|
+
On IE11 and some versions of Edge, SVG elements are focusable by default.
|
|
31
|
+
Setting `focusable="false"` on the SVG prevents this.
|
|
32
|
+
|
|
33
|
+
## Iconsets
|
|
34
|
+
|
|
35
|
+
Requesting many individual icons can be bad for performance. We should, therefore, group related icons
|
|
36
|
+
together in icon sets.
|
|
37
|
+
|
|
38
|
+
Iconsets are managed by the `IconManager`, where you can register icon resolvers to resolve an icon id
|
|
39
|
+
to the correct icon.
|
|
40
|
+
|
|
41
|
+
### Creating an icon resolver
|
|
42
|
+
|
|
43
|
+
An icon resolver is a function that receives the icon set and the icon name and subsequently
|
|
44
|
+
returns the icon to be rendered.
|
|
45
|
+
|
|
46
|
+
The most common use case is for this function to be async, and import the icon set on demand:
|
|
47
|
+
|
|
48
|
+
```js
|
|
49
|
+
function resolveLionIcon(iconset, name) {
|
|
50
|
+
switch (iconset) {
|
|
51
|
+
case 'bugs':
|
|
52
|
+
return import('./icons/iconset-bugs.js').then(module => module[name]);
|
|
53
|
+
case 'space':
|
|
54
|
+
return import('./icons/iconset-space.js').then(module => module[name]);
|
|
55
|
+
case 'misc':
|
|
56
|
+
return import('./icons/iconset-misc.js').then(module => module[name]);
|
|
57
|
+
default:
|
|
58
|
+
throw new Error(`Unknown iconset ${iconset}`);
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
An icon resolver can also be synchronous, returning the icon directly:
|
|
64
|
+
|
|
65
|
+
```js
|
|
66
|
+
const icons = {
|
|
67
|
+
coolIcons: {
|
|
68
|
+
'my-icon': html` <svg>... icon code ...</svg> `,
|
|
69
|
+
},
|
|
70
|
+
};
|
|
71
|
+
|
|
72
|
+
function resolveLionIcon(iconset, name) {
|
|
73
|
+
return coolIcons[iconSets][name];
|
|
74
|
+
}
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
### Registering an icon resolver
|
|
78
|
+
|
|
79
|
+
Icon resolvers are registered in the `IconManager` on a namespace. There can be only one resolver per namespace, so
|
|
80
|
+
make sure they are unique. A good idea is to use your package name as the namespace.
|
|
81
|
+
|
|
82
|
+
```js
|
|
83
|
+
import { icons } from '@lion/ui/icon.js';
|
|
84
|
+
|
|
85
|
+
function resolveLionIcon(iconset, name) {
|
|
86
|
+
switch (iconset) {
|
|
87
|
+
case 'bugs':
|
|
88
|
+
return import('./icons/iconset-bugs.js').then(module => module[name]);
|
|
89
|
+
case 'space':
|
|
90
|
+
return import('./icons/iconset-space.js').then(module => module[name]);
|
|
91
|
+
case 'misc':
|
|
92
|
+
return import('./icons/iconset-misc.js').then(module => module[name]);
|
|
93
|
+
default:
|
|
94
|
+
throw new Error(`Unknown iconset ${iconset}`);
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
icons.addIconResolver('lion', resolveLionIcon);
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
### Using icon resolvers
|
|
102
|
+
|
|
103
|
+
After register an icon resolver, icons can be resolved from the manager:
|
|
104
|
+
|
|
105
|
+
```js
|
|
106
|
+
import { icons } from '@lion/ui/icon.js';
|
|
107
|
+
|
|
108
|
+
const spaceshipIcon = await icons.resolveIcon('lion', 'space', 'alienSpaceship');
|
|
109
|
+
```
|
|
110
|
+
|
|
111
|
+
Icons can also be resolved from a single string, using the pattern: `namespace:iconset:name`:
|
|
112
|
+
|
|
113
|
+
```js
|
|
114
|
+
import { icons } from '@lion/ui/icon.js';
|
|
115
|
+
|
|
116
|
+
const spaceshipIcon = await icons.resolveIconForId('lion:space:alienSpaceship');
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
This syntax is used by the `lion-icon` component, where the id can be set on an attribute:
|
|
120
|
+
|
|
121
|
+
```html
|
|
122
|
+
<lion-icon icon-id="lion:space:alienSpaceship"></lion-icon>
|
|
123
|
+
<lion-icon icon-id="lion:misc:arrowLeft"></lion-icon>
|
|
124
|
+
```
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
# Systems ||20
|
|
@@ -0,0 +1,437 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
'af-ZA': 'Afrikaans (South Africa)',
|
|
3
|
+
af: 'Afrikaans',
|
|
4
|
+
'ak-GH': 'Akan (Ghana)',
|
|
5
|
+
ak: 'Akan',
|
|
6
|
+
'sq-AL': 'Albanian (Albania)',
|
|
7
|
+
sq: 'Albanian',
|
|
8
|
+
'am-ET': 'Amharic (Ethiopia)',
|
|
9
|
+
am: 'Amharic',
|
|
10
|
+
'ar-DZ': 'Arabic (Algeria)',
|
|
11
|
+
'ar-BH': 'Arabic (Bahrain)',
|
|
12
|
+
'ar-EG': 'Arabic (Egypt)',
|
|
13
|
+
'ar-IQ': 'Arabic (Iraq)',
|
|
14
|
+
'ar-JO': 'Arabic (Jordan)',
|
|
15
|
+
'ar-KW': 'Arabic (Kuwait)',
|
|
16
|
+
'ar-LB': 'Arabic (Lebanon)',
|
|
17
|
+
'ar-LY': 'Arabic (Libya)',
|
|
18
|
+
'ar-MA': 'Arabic (Morocco)',
|
|
19
|
+
'ar-OM': 'Arabic (Oman)',
|
|
20
|
+
'ar-QA': 'Arabic (Qatar)',
|
|
21
|
+
'ar-SA': 'Arabic (Saudi Arabia)',
|
|
22
|
+
'ar-SD': 'Arabic (Sudan)',
|
|
23
|
+
'ar-SY': 'Arabic (Syria)',
|
|
24
|
+
'ar-TN': 'Arabic (Tunisia)',
|
|
25
|
+
'ar-AE': 'Arabic (United Arab Emirates)',
|
|
26
|
+
'ar-YE': 'Arabic (Yemen)',
|
|
27
|
+
ar: 'Arabic',
|
|
28
|
+
'hy-AM': 'Armenian (Armenia)',
|
|
29
|
+
hy: 'Armenian',
|
|
30
|
+
'as-IN': 'Assamese (India)',
|
|
31
|
+
as: 'Assamese',
|
|
32
|
+
'asa-TZ': 'Asu (Tanzania)',
|
|
33
|
+
asa: 'Asu',
|
|
34
|
+
'az-Cyrl': 'Azerbaijani (Cyrillic)',
|
|
35
|
+
'az-Cyrl-AZ': 'Azerbaijani (Cyrillic, Azerbaijan)',
|
|
36
|
+
'az-Latn': 'Azerbaijani (Latin)',
|
|
37
|
+
'az-Latn-AZ': 'Azerbaijani (Latin, Azerbaijan)',
|
|
38
|
+
az: 'Azerbaijani',
|
|
39
|
+
'bm-ML': 'Bambara (Mali)',
|
|
40
|
+
bm: 'Bambara',
|
|
41
|
+
'eu-ES': 'Basque (Spain)',
|
|
42
|
+
eu: 'Basque',
|
|
43
|
+
'be-BY': 'Belarusian (Belarus)',
|
|
44
|
+
be: 'Belarusian',
|
|
45
|
+
'bem-ZM': 'Bemba (Zambia)',
|
|
46
|
+
bem: 'Bemba',
|
|
47
|
+
'bez-TZ': 'Bena (Tanzania)',
|
|
48
|
+
bez: 'Bena',
|
|
49
|
+
'bn-BD': 'Bengali (Bangladesh)',
|
|
50
|
+
'bn-IN': 'Bengali (India)',
|
|
51
|
+
bn: 'Bengali',
|
|
52
|
+
'bs-BA': 'Bosnian (Bosnia and Herzegovina)',
|
|
53
|
+
bs: 'Bosnian',
|
|
54
|
+
'bg-BG': 'Bulgarian (Bulgaria)',
|
|
55
|
+
bg: 'Bulgarian',
|
|
56
|
+
'my-MM': 'Burmese (Myanmar [Burma])',
|
|
57
|
+
my: 'Burmese',
|
|
58
|
+
'yue-Hant-HK': 'Cantonese (Traditional, Hong Kong SAR China)',
|
|
59
|
+
'ca-ES': 'Catalan (Spain)',
|
|
60
|
+
ca: 'Catalan',
|
|
61
|
+
'tzm-Latn': 'Central Morocco Tamazight (Latin)',
|
|
62
|
+
'tzm-Latn-MA': 'Central Morocco Tamazight (Latin, Morocco)',
|
|
63
|
+
tzm: 'Central Morocco Tamazight',
|
|
64
|
+
'chr-US': 'Cherokee (United States)',
|
|
65
|
+
chr: 'Cherokee',
|
|
66
|
+
'cgg-UG': 'Chiga (Uganda)',
|
|
67
|
+
cgg: 'Chiga',
|
|
68
|
+
'zh-Hans': 'Chinese (Simplified Han)',
|
|
69
|
+
'zh-Hans-CN': 'Chinese (Simplified Han, China)',
|
|
70
|
+
'zh-Hans-HK': 'Chinese (Simplified Han, Hong Kong SAR China)',
|
|
71
|
+
'zh-Hans-MO': 'Chinese (Simplified Han, Macau SAR China)',
|
|
72
|
+
'zh-Hans-SG': 'Chinese (Simplified Han, Singapore)',
|
|
73
|
+
'zh-Hant': 'Chinese (Traditional Han)',
|
|
74
|
+
'zh-Hant-HK': 'Chinese (Traditional Han, Hong Kong SAR China)',
|
|
75
|
+
'zh-Hant-MO': 'Chinese (Traditional Han, Macau SAR China)',
|
|
76
|
+
'zh-Hant-TW': 'Chinese (Traditional Han, Taiwan)',
|
|
77
|
+
zh: 'Chinese',
|
|
78
|
+
'kw-GB': 'Cornish (United Kingdom)',
|
|
79
|
+
kw: 'Cornish',
|
|
80
|
+
'hr-HR': 'Croatian (Croatia)',
|
|
81
|
+
hr: 'Croatian',
|
|
82
|
+
'cs-CZ': 'Czech (Czech Republic)',
|
|
83
|
+
cs: 'Czech',
|
|
84
|
+
'da-DK': 'Danish (Denmark)',
|
|
85
|
+
da: 'Danish',
|
|
86
|
+
'nl-BE': 'Dutch (Belgium)',
|
|
87
|
+
'nl-NL': 'Dutch (Netherlands)',
|
|
88
|
+
nl: 'Dutch',
|
|
89
|
+
'ebu-KE': 'Embu (Kenya)',
|
|
90
|
+
ebu: 'Embu',
|
|
91
|
+
'en-AS': 'English (American Samoa)',
|
|
92
|
+
'en-AU': 'English (Australia)',
|
|
93
|
+
'en-BE': 'English (Belgium)',
|
|
94
|
+
'en-BZ': 'English (Belize)',
|
|
95
|
+
'en-BW': 'English (Botswana)',
|
|
96
|
+
'en-CA': 'English (Canada)',
|
|
97
|
+
'en-GU': 'English (Guam)',
|
|
98
|
+
'en-HK': 'English (Hong Kong SAR China)',
|
|
99
|
+
'en-IN': 'English (India)',
|
|
100
|
+
'en-IE': 'English (Ireland)',
|
|
101
|
+
'en-IL': 'English (Israel)',
|
|
102
|
+
'en-JM': 'English (Jamaica)',
|
|
103
|
+
'en-MT': 'English (Malta)',
|
|
104
|
+
'en-MH': 'English (Marshall Islands)',
|
|
105
|
+
'en-MU': 'English (Mauritius)',
|
|
106
|
+
'en-NA': 'English (Namibia)',
|
|
107
|
+
'en-NZ': 'English (New Zealand)',
|
|
108
|
+
'en-MP': 'English (Northern Mariana Islands)',
|
|
109
|
+
'en-PK': 'English (Pakistan)',
|
|
110
|
+
'en-PH': 'English (Philippines)',
|
|
111
|
+
'en-SG': 'English (Singapore)',
|
|
112
|
+
'en-ZA': 'English (South Africa)',
|
|
113
|
+
'en-TT': 'English (Trinidad and Tobago)',
|
|
114
|
+
'en-UM': 'English (U.S. Minor Outlying Islands)',
|
|
115
|
+
'en-VI': 'English (U.S. Virgin Islands)',
|
|
116
|
+
'en-GB': 'English (United Kingdom)',
|
|
117
|
+
'en-US': 'English (United States)',
|
|
118
|
+
'en-ZW': 'English (Zimbabwe)',
|
|
119
|
+
en: 'English',
|
|
120
|
+
eo: 'Esperanto',
|
|
121
|
+
'et-EE': 'Estonian (Estonia)',
|
|
122
|
+
et: 'Estonian',
|
|
123
|
+
'ee-GH': 'Ewe (Ghana)',
|
|
124
|
+
'ee-TG': 'Ewe (Togo)',
|
|
125
|
+
ee: 'Ewe',
|
|
126
|
+
'fo-FO': 'Faroese (Faroe Islands)',
|
|
127
|
+
fo: 'Faroese',
|
|
128
|
+
'fil-PH': 'Filipino (Philippines)',
|
|
129
|
+
fil: 'Filipino',
|
|
130
|
+
'fi-FI': 'Finnish (Finland)',
|
|
131
|
+
fi: 'Finnish',
|
|
132
|
+
'fr-BE': 'French (Belgium)',
|
|
133
|
+
'fr-BJ': 'French (Benin)',
|
|
134
|
+
'fr-BF': 'French (Burkina Faso)',
|
|
135
|
+
'fr-BI': 'French (Burundi)',
|
|
136
|
+
'fr-CM': 'French (Cameroon)',
|
|
137
|
+
'fr-CA': 'French (Canada)',
|
|
138
|
+
'fr-CF': 'French (Central African Republic)',
|
|
139
|
+
'fr-TD': 'French (Chad)',
|
|
140
|
+
'fr-KM': 'French (Comoros)',
|
|
141
|
+
'fr-CG': 'French (Congo - Brazzaville)',
|
|
142
|
+
'fr-CD': 'French (Congo - Kinshasa)',
|
|
143
|
+
'fr-CI': 'French (Côte d’Ivoire)',
|
|
144
|
+
'fr-DJ': 'French (Djibouti)',
|
|
145
|
+
'fr-GQ': 'French (Equatorial Guinea)',
|
|
146
|
+
'fr-FR': 'French (France)',
|
|
147
|
+
'fr-GA': 'French (Gabon)',
|
|
148
|
+
'fr-GP': 'French (Guadeloupe)',
|
|
149
|
+
'fr-GN': 'French (Guinea)',
|
|
150
|
+
'fr-LU': 'French (Luxembourg)',
|
|
151
|
+
'fr-MG': 'French (Madagascar)',
|
|
152
|
+
'fr-ML': 'French (Mali)',
|
|
153
|
+
'fr-MQ': 'French (Martinique)',
|
|
154
|
+
'fr-MC': 'French (Monaco)',
|
|
155
|
+
'fr-NE': 'French (Niger)',
|
|
156
|
+
'fr-RW': 'French (Rwanda)',
|
|
157
|
+
'fr-RE': 'French (Réunion)',
|
|
158
|
+
'fr-BL': 'French (Saint Barthélemy)',
|
|
159
|
+
'fr-MF': 'French (Saint Martin)',
|
|
160
|
+
'fr-SN': 'French (Senegal)',
|
|
161
|
+
'fr-CH': 'French (Switzerland)',
|
|
162
|
+
'fr-TG': 'French (Togo)',
|
|
163
|
+
fr: 'French',
|
|
164
|
+
'ff-SN': 'Fulah (Senegal)',
|
|
165
|
+
ff: 'Fulah',
|
|
166
|
+
'gl-ES': 'Galician (Spain)',
|
|
167
|
+
gl: 'Galician',
|
|
168
|
+
'lg-UG': 'Ganda (Uganda)',
|
|
169
|
+
lg: 'Ganda',
|
|
170
|
+
'ka-GE': 'Georgian (Georgia)',
|
|
171
|
+
ka: 'Georgian',
|
|
172
|
+
'de-AT': 'German (Austria)',
|
|
173
|
+
'de-BE': 'German (Belgium)',
|
|
174
|
+
'de-DE': 'German (Germany)',
|
|
175
|
+
'de-LI': 'German (Liechtenstein)',
|
|
176
|
+
'de-LU': 'German (Luxembourg)',
|
|
177
|
+
'de-CH': 'German (Switzerland)',
|
|
178
|
+
de: 'German',
|
|
179
|
+
'el-CY': 'Greek (Cyprus)',
|
|
180
|
+
'el-GR': 'Greek (Greece)',
|
|
181
|
+
el: 'Greek',
|
|
182
|
+
'gu-IN': 'Gujarati (India)',
|
|
183
|
+
gu: 'Gujarati',
|
|
184
|
+
'guz-KE': 'Gusii (Kenya)',
|
|
185
|
+
guz: 'Gusii',
|
|
186
|
+
'ha-Latn': 'Hausa (Latin)',
|
|
187
|
+
'ha-Latn-GH': 'Hausa (Latin, Ghana)',
|
|
188
|
+
'ha-Latn-NE': 'Hausa (Latin, Niger)',
|
|
189
|
+
'ha-Latn-NG': 'Hausa (Latin, Nigeria)',
|
|
190
|
+
ha: 'Hausa',
|
|
191
|
+
'haw-US': 'Hawaiian (United States)',
|
|
192
|
+
haw: 'Hawaiian',
|
|
193
|
+
'he-IL': 'Hebrew (Israel)',
|
|
194
|
+
he: 'Hebrew',
|
|
195
|
+
'hi-IN': 'Hindi (India)',
|
|
196
|
+
hi: 'Hindi',
|
|
197
|
+
'hu-HU': 'Hungarian (Hungary)',
|
|
198
|
+
hu: 'Hungarian',
|
|
199
|
+
'is-IS': 'Icelandic (Iceland)',
|
|
200
|
+
is: 'Icelandic',
|
|
201
|
+
'ig-NG': 'Igbo (Nigeria)',
|
|
202
|
+
ig: 'Igbo',
|
|
203
|
+
'id-ID': 'Indonesian (Indonesia)',
|
|
204
|
+
id: 'Indonesian',
|
|
205
|
+
'ga-IE': 'Irish (Ireland)',
|
|
206
|
+
ga: 'Irish',
|
|
207
|
+
'it-IT': 'Italian (Italy)',
|
|
208
|
+
'it-CH': 'Italian (Switzerland)',
|
|
209
|
+
it: 'Italian',
|
|
210
|
+
'ja-JP': 'Japanese (Japan)',
|
|
211
|
+
ja: 'Japanese',
|
|
212
|
+
'kea-CV': 'Kabuverdianu (Cape Verde)',
|
|
213
|
+
kea: 'Kabuverdianu',
|
|
214
|
+
'kab-DZ': 'Kabyle (Algeria)',
|
|
215
|
+
kab: 'Kabyle',
|
|
216
|
+
'kl-GL': 'Kalaallisut (Greenland)',
|
|
217
|
+
kl: 'Kalaallisut',
|
|
218
|
+
'kln-KE': 'Kalenjin (Kenya)',
|
|
219
|
+
kln: 'Kalenjin',
|
|
220
|
+
'kam-KE': 'Kamba (Kenya)',
|
|
221
|
+
kam: 'Kamba',
|
|
222
|
+
'kn-IN': 'Kannada (India)',
|
|
223
|
+
kn: 'Kannada',
|
|
224
|
+
'kk-Cyrl': 'Kazakh (Cyrillic)',
|
|
225
|
+
'kk-Cyrl-KZ': 'Kazakh (Cyrillic, Kazakhstan)',
|
|
226
|
+
kk: 'Kazakh',
|
|
227
|
+
'km-KH': 'Khmer (Cambodia)',
|
|
228
|
+
km: 'Khmer',
|
|
229
|
+
'ki-KE': 'Kikuyu (Kenya)',
|
|
230
|
+
ki: 'Kikuyu',
|
|
231
|
+
'rw-RW': 'Kinyarwanda (Rwanda)',
|
|
232
|
+
rw: 'Kinyarwanda',
|
|
233
|
+
'kok-IN': 'Konkani (India)',
|
|
234
|
+
kok: 'Konkani',
|
|
235
|
+
'ko-KR': 'Korean (South Korea)',
|
|
236
|
+
ko: 'Korean',
|
|
237
|
+
'khq-ML': 'Koyra Chiini (Mali)',
|
|
238
|
+
khq: 'Koyra Chiini',
|
|
239
|
+
'ses-ML': 'Koyraboro Senni (Mali)',
|
|
240
|
+
ses: 'Koyraboro Senni',
|
|
241
|
+
'lag-TZ': 'Langi (Tanzania)',
|
|
242
|
+
lag: 'Langi',
|
|
243
|
+
'lv-LV': 'Latvian (Latvia)',
|
|
244
|
+
lv: 'Latvian',
|
|
245
|
+
'lt-LT': 'Lithuanian (Lithuania)',
|
|
246
|
+
lt: 'Lithuanian',
|
|
247
|
+
'luo-KE': 'Luo (Kenya)',
|
|
248
|
+
luo: 'Luo',
|
|
249
|
+
'luy-KE': 'Luyia (Kenya)',
|
|
250
|
+
luy: 'Luyia',
|
|
251
|
+
'mk-MK': 'Macedonian (Macedonia)',
|
|
252
|
+
mk: 'Macedonian',
|
|
253
|
+
'jmc-TZ': 'Machame (Tanzania)',
|
|
254
|
+
jmc: 'Machame',
|
|
255
|
+
'kde-TZ': 'Makonde (Tanzania)',
|
|
256
|
+
kde: 'Makonde',
|
|
257
|
+
'mg-MG': 'Malagasy (Madagascar)',
|
|
258
|
+
mg: 'Malagasy',
|
|
259
|
+
'ms-BN': 'Malay (Brunei)',
|
|
260
|
+
'ms-MY': 'Malay (Malaysia)',
|
|
261
|
+
ms: 'Malay',
|
|
262
|
+
'ml-IN': 'Malayalam (India)',
|
|
263
|
+
ml: 'Malayalam',
|
|
264
|
+
'mt-MT': 'Maltese (Malta)',
|
|
265
|
+
mt: 'Maltese',
|
|
266
|
+
'gv-GB': 'Manx (United Kingdom)',
|
|
267
|
+
gv: 'Manx',
|
|
268
|
+
'mr-IN': 'Marathi (India)',
|
|
269
|
+
mr: 'Marathi',
|
|
270
|
+
'mas-KE': 'Masai (Kenya)',
|
|
271
|
+
'mas-TZ': 'Masai (Tanzania)',
|
|
272
|
+
mas: 'Masai',
|
|
273
|
+
'mer-KE': 'Meru (Kenya)',
|
|
274
|
+
mer: 'Meru',
|
|
275
|
+
'mfe-MU': 'Morisyen (Mauritius)',
|
|
276
|
+
mfe: 'Morisyen',
|
|
277
|
+
'naq-NA': 'Nama (Namibia)',
|
|
278
|
+
naq: 'Nama',
|
|
279
|
+
'ne-IN': 'Nepali (India)',
|
|
280
|
+
'ne-NP': 'Nepali (Nepal)',
|
|
281
|
+
ne: 'Nepali',
|
|
282
|
+
'nd-ZW': 'North Ndebele (Zimbabwe)',
|
|
283
|
+
nd: 'North Ndebele',
|
|
284
|
+
'nb-NO': 'Norwegian Bokmål (Norway)',
|
|
285
|
+
nb: 'Norwegian Bokmål',
|
|
286
|
+
'nn-NO': 'Norwegian Nynorsk (Norway)',
|
|
287
|
+
nn: 'Norwegian Nynorsk',
|
|
288
|
+
'nyn-UG': 'Nyankole (Uganda)',
|
|
289
|
+
nyn: 'Nyankole',
|
|
290
|
+
'or-IN': 'Oriya (India)',
|
|
291
|
+
or: 'Oriya',
|
|
292
|
+
'om-ET': 'Oromo (Ethiopia)',
|
|
293
|
+
'om-KE': 'Oromo (Kenya)',
|
|
294
|
+
om: 'Oromo',
|
|
295
|
+
'ps-AF': 'Pashto (Afghanistan)',
|
|
296
|
+
ps: 'Pashto',
|
|
297
|
+
'fa-AF': 'Persian (Afghanistan)',
|
|
298
|
+
'fa-IR': 'Persian (Iran)',
|
|
299
|
+
fa: 'Persian',
|
|
300
|
+
'pl-PL': 'Polish (Poland)',
|
|
301
|
+
pl: 'Polish',
|
|
302
|
+
'pt-BR': 'Portuguese (Brazil)',
|
|
303
|
+
'pt-GW': 'Portuguese (Guinea-Bissau)',
|
|
304
|
+
'pt-MZ': 'Portuguese (Mozambique)',
|
|
305
|
+
'pt-PT': 'Portuguese (Portugal)',
|
|
306
|
+
pt: 'Portuguese',
|
|
307
|
+
'pa-Arab': 'Punjabi (Arabic)',
|
|
308
|
+
'pa-Arab-PK': 'Punjabi (Arabic, Pakistan)',
|
|
309
|
+
'pa-Guru': 'Punjabi (Gurmukhi)',
|
|
310
|
+
'pa-Guru-IN': 'Punjabi (Gurmukhi, India)',
|
|
311
|
+
pa: 'Punjabi',
|
|
312
|
+
'ro-MD': 'Romanian (Moldova)',
|
|
313
|
+
'ro-RO': 'Romanian (Romania)',
|
|
314
|
+
ro: 'Romanian',
|
|
315
|
+
'rm-CH': 'Romansh (Switzerland)',
|
|
316
|
+
rm: 'Romansh',
|
|
317
|
+
'rof-TZ': 'Rombo (Tanzania)',
|
|
318
|
+
rof: 'Rombo',
|
|
319
|
+
'ru-MD': 'Russian (Moldova)',
|
|
320
|
+
'ru-RU': 'Russian (Russia)',
|
|
321
|
+
'ru-UA': 'Russian (Ukraine)',
|
|
322
|
+
ru: 'Russian',
|
|
323
|
+
'rwk-TZ': 'Rwa (Tanzania)',
|
|
324
|
+
rwk: 'Rwa',
|
|
325
|
+
'saq-KE': 'Samburu (Kenya)',
|
|
326
|
+
saq: 'Samburu',
|
|
327
|
+
'sg-CF': 'Sango (Central African Republic)',
|
|
328
|
+
sg: 'Sango',
|
|
329
|
+
'seh-MZ': 'Sena (Mozambique)',
|
|
330
|
+
seh: 'Sena',
|
|
331
|
+
'sr-Cyrl': 'Serbian (Cyrillic)',
|
|
332
|
+
'sr-Cyrl-BA': 'Serbian (Cyrillic, Bosnia and Herzegovina)',
|
|
333
|
+
'sr-Cyrl-ME': 'Serbian (Cyrillic, Montenegro)',
|
|
334
|
+
'sr-Cyrl-RS': 'Serbian (Cyrillic, Serbia)',
|
|
335
|
+
'sr-Latn': 'Serbian (Latin)',
|
|
336
|
+
'sr-Latn-BA': 'Serbian (Latin, Bosnia and Herzegovina)',
|
|
337
|
+
'sr-Latn-ME': 'Serbian (Latin, Montenegro)',
|
|
338
|
+
'sr-Latn-RS': 'Serbian (Latin, Serbia)',
|
|
339
|
+
sr: 'Serbian',
|
|
340
|
+
'sn-ZW': 'Shona (Zimbabwe)',
|
|
341
|
+
sn: 'Shona',
|
|
342
|
+
'ii-CN': 'Sichuan Yi (China)',
|
|
343
|
+
ii: 'Sichuan Yi',
|
|
344
|
+
'si-LK': 'Sinhala (Sri Lanka)',
|
|
345
|
+
si: 'Sinhala',
|
|
346
|
+
'sk-SK': 'Slovak (Slovakia)',
|
|
347
|
+
sk: 'Slovak',
|
|
348
|
+
'sl-SI': 'Slovenian (Slovenia)',
|
|
349
|
+
sl: 'Slovenian',
|
|
350
|
+
'xog-UG': 'Soga (Uganda)',
|
|
351
|
+
xog: 'Soga',
|
|
352
|
+
'so-DJ': 'Somali (Djibouti)',
|
|
353
|
+
'so-ET': 'Somali (Ethiopia)',
|
|
354
|
+
'so-KE': 'Somali (Kenya)',
|
|
355
|
+
'so-SO': 'Somali (Somalia)',
|
|
356
|
+
so: 'Somali',
|
|
357
|
+
'es-AR': 'Spanish (Argentina)',
|
|
358
|
+
'es-BO': 'Spanish (Bolivia)',
|
|
359
|
+
'es-CL': 'Spanish (Chile)',
|
|
360
|
+
'es-CO': 'Spanish (Colombia)',
|
|
361
|
+
'es-CR': 'Spanish (Costa Rica)',
|
|
362
|
+
'es-DO': 'Spanish (Dominican Republic)',
|
|
363
|
+
'es-EC': 'Spanish (Ecuador)',
|
|
364
|
+
'es-SV': 'Spanish (El Salvador)',
|
|
365
|
+
'es-GQ': 'Spanish (Equatorial Guinea)',
|
|
366
|
+
'es-GT': 'Spanish (Guatemala)',
|
|
367
|
+
'es-HN': 'Spanish (Honduras)',
|
|
368
|
+
'es-419': 'Spanish (Latin America)',
|
|
369
|
+
'es-MX': 'Spanish (Mexico)',
|
|
370
|
+
'es-NI': 'Spanish (Nicaragua)',
|
|
371
|
+
'es-PA': 'Spanish (Panama)',
|
|
372
|
+
'es-PY': 'Spanish (Paraguay)',
|
|
373
|
+
'es-PE': 'Spanish (Peru)',
|
|
374
|
+
'es-PR': 'Spanish (Puerto Rico)',
|
|
375
|
+
'es-ES': 'Spanish (Spain)',
|
|
376
|
+
'es-US': 'Spanish (United States)',
|
|
377
|
+
'es-UY': 'Spanish (Uruguay)',
|
|
378
|
+
'es-VE': 'Spanish (Venezuela)',
|
|
379
|
+
es: 'Spanish',
|
|
380
|
+
'sw-KE': 'Swahili (Kenya)',
|
|
381
|
+
'sw-TZ': 'Swahili (Tanzania)',
|
|
382
|
+
sw: 'Swahili',
|
|
383
|
+
'sv-FI': 'Swedish (Finland)',
|
|
384
|
+
'sv-SE': 'Swedish (Sweden)',
|
|
385
|
+
sv: 'Swedish',
|
|
386
|
+
'gsw-CH': 'Swiss German (Switzerland)',
|
|
387
|
+
gsw: 'Swiss German',
|
|
388
|
+
'shi-Latn': 'Tachelhit (Latin)',
|
|
389
|
+
'shi-Latn-MA': 'Tachelhit (Latin, Morocco)',
|
|
390
|
+
'shi-Tfng': 'Tachelhit (Tifinagh)',
|
|
391
|
+
'shi-Tfng-MA': 'Tachelhit (Tifinagh, Morocco)',
|
|
392
|
+
shi: 'Tachelhit',
|
|
393
|
+
'dav-KE': 'Taita (Kenya)',
|
|
394
|
+
dav: 'Taita',
|
|
395
|
+
'ta-IN': 'Tamil (India)',
|
|
396
|
+
'ta-LK': 'Tamil (Sri Lanka)',
|
|
397
|
+
ta: 'Tamil',
|
|
398
|
+
'te-IN': 'Telugu (India)',
|
|
399
|
+
te: 'Telugu',
|
|
400
|
+
'teo-KE': 'Teso (Kenya)',
|
|
401
|
+
'teo-UG': 'Teso (Uganda)',
|
|
402
|
+
teo: 'Teso',
|
|
403
|
+
'th-TH': 'Thai (Thailand)',
|
|
404
|
+
th: 'Thai',
|
|
405
|
+
'bo-CN': 'Tibetan (China)',
|
|
406
|
+
'bo-IN': 'Tibetan (India)',
|
|
407
|
+
bo: 'Tibetan',
|
|
408
|
+
'ti-ER': 'Tigrinya (Eritrea)',
|
|
409
|
+
'ti-ET': 'Tigrinya (Ethiopia)',
|
|
410
|
+
ti: 'Tigrinya',
|
|
411
|
+
'to-TO': 'Tonga (Tonga)',
|
|
412
|
+
to: 'Tonga',
|
|
413
|
+
'tr-TR': 'Turkish (Turkey)',
|
|
414
|
+
tr: 'Turkish',
|
|
415
|
+
'uk-UA': 'Ukrainian (Ukraine)',
|
|
416
|
+
uk: 'Ukrainian',
|
|
417
|
+
'ur-IN': 'Urdu (India)',
|
|
418
|
+
'ur-PK': 'Urdu (Pakistan)',
|
|
419
|
+
ur: 'Urdu',
|
|
420
|
+
'uz-Arab': 'Uzbek (Arabic)',
|
|
421
|
+
'uz-Arab-AF': 'Uzbek (Arabic, Afghanistan)',
|
|
422
|
+
'uz-Cyrl': 'Uzbek (Cyrillic)',
|
|
423
|
+
'uz-Cyrl-UZ': 'Uzbek (Cyrillic, Uzbekistan)',
|
|
424
|
+
'uz-Latn': 'Uzbek (Latin)',
|
|
425
|
+
'uz-Latn-UZ': 'Uzbek (Latin, Uzbekistan)',
|
|
426
|
+
uz: 'Uzbek',
|
|
427
|
+
'vi-VN': 'Vietnamese (Vietnam)',
|
|
428
|
+
vi: 'Vietnamese',
|
|
429
|
+
'vun-TZ': 'Vunjo (Tanzania)',
|
|
430
|
+
vun: 'Vunjo',
|
|
431
|
+
'cy-GB': 'Welsh (United Kingdom)',
|
|
432
|
+
cy: 'Welsh',
|
|
433
|
+
'yo-NG': 'Yoruba (Nigeria)',
|
|
434
|
+
yo: 'Yoruba',
|
|
435
|
+
'zu-ZA': 'Zulu (South Africa)',
|
|
436
|
+
zu: 'Zulu',
|
|
437
|
+
};
|