@1024pix/pix-ui 44.3.1 → 44.3.3
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/addon/translations/index.js +7 -1
- package/addon/translations/nl.js +12 -0
- package/package.json +14 -11
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { createIntl } from '@formatjs/intl';
|
|
2
2
|
import en from './en';
|
|
3
3
|
import fr from './fr';
|
|
4
|
+
import nl from './nl';
|
|
4
5
|
|
|
5
6
|
export function formatMessage(locale, message, values) {
|
|
6
|
-
|
|
7
|
+
const intl = locales[locale] || locales.en;
|
|
8
|
+
return intl.formatMessage({ id: message }, values);
|
|
7
9
|
}
|
|
8
10
|
|
|
9
11
|
const locales = {
|
|
@@ -15,6 +17,10 @@ const locales = {
|
|
|
15
17
|
locale: 'en',
|
|
16
18
|
messages: flattenObject(en),
|
|
17
19
|
}),
|
|
20
|
+
nl: createIntl({
|
|
21
|
+
locale: 'nl',
|
|
22
|
+
messages: flattenObject(nl),
|
|
23
|
+
}),
|
|
18
24
|
};
|
|
19
25
|
|
|
20
26
|
export function flattenObject(object) {
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
pagination: {
|
|
3
|
+
beforeResultsPerPage: 'Zie',
|
|
4
|
+
selectPageSizeLabel: 'Selecteer het aantal items per pagina',
|
|
5
|
+
pageResults: '{total, plural, =0 {0 items} =1 {1 item} other {{total, number} items}}',
|
|
6
|
+
pageInfo:
|
|
7
|
+
'{start, number}-{end, number} van {total, plural, =0 {0 items} =1 {1 item} other {{total, number} items}}',
|
|
8
|
+
previousPageLabel: 'Ga naar vorige pagina',
|
|
9
|
+
pageNumber: 'Pagina {current, number} / {total, number}',
|
|
10
|
+
nextPageLabel: 'Ga naar volgende pagina',
|
|
11
|
+
},
|
|
12
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@1024pix/pix-ui",
|
|
3
|
-
"version": "44.3.
|
|
3
|
+
"version": "44.3.3",
|
|
4
4
|
"description": "Pix-UI is the implementation of Pix design principles and guidelines for its products.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ember-addon"
|
|
@@ -76,16 +76,19 @@
|
|
|
76
76
|
"@glimmer/component": "^1.1.2",
|
|
77
77
|
"@glimmer/syntax": "^0.88.0",
|
|
78
78
|
"@glimmer/tracking": "^1.1.2",
|
|
79
|
-
"@storybook/addon-a11y": "
|
|
80
|
-
"@storybook/addon-controls": "
|
|
81
|
-
"@storybook/addon-docs": "
|
|
82
|
-
"@storybook/addon-essentials": "
|
|
83
|
-
"@storybook/
|
|
84
|
-
"@storybook/
|
|
85
|
-
"@storybook/
|
|
86
|
-
"@storybook/
|
|
79
|
+
"@storybook/addon-a11y": "^8.0.0",
|
|
80
|
+
"@storybook/addon-controls": "^8.0.0",
|
|
81
|
+
"@storybook/addon-docs": "^8.0.0",
|
|
82
|
+
"@storybook/addon-essentials": "^8.0.0",
|
|
83
|
+
"@storybook/addon-mdx-gfm": "^8.0.0",
|
|
84
|
+
"@storybook/addon-webpack5-compiler-babel": "^3.0.3",
|
|
85
|
+
"@storybook/addons": "^7.6.17",
|
|
86
|
+
"@storybook/blocks": "^8.0.0",
|
|
87
|
+
"@storybook/builder-webpack5": "^8.0.0",
|
|
88
|
+
"@storybook/ember": "^8.0.0",
|
|
89
|
+
"@storybook/ember-cli-storybook": "^0.6.1",
|
|
87
90
|
"@storybook/storybook-deployer": "^2.8.16",
|
|
88
|
-
"@storybook/theming": "
|
|
91
|
+
"@storybook/theming": "^8.0.0",
|
|
89
92
|
"@testing-library/dom": "^8.20.0",
|
|
90
93
|
"@testing-library/user-event": "^14.4.3",
|
|
91
94
|
"chromatic": "^11.0.0",
|
|
@@ -122,7 +125,7 @@
|
|
|
122
125
|
"qunit": "^2.19.3",
|
|
123
126
|
"qunit-dom": "^3.0.0",
|
|
124
127
|
"sass": "^1.56.1",
|
|
125
|
-
"storybook": "^
|
|
128
|
+
"storybook": "^8.0.0",
|
|
126
129
|
"stylelint": "^16.0.2",
|
|
127
130
|
"stylelint-config-rational-order": "^0.1.2",
|
|
128
131
|
"stylelint-config-standard-scss": "^13.0.0",
|