@refinitiv-ui/phrasebook 0.0.0-build.1957399501.1
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/CHANGELOG.md +126 -0
- package/LICENSE +13 -0
- package/README.md +112 -0
- package/lib/index.d.ts +2 -0
- package/lib/index.js +1 -0
- package/lib/locale/de/calendar.d.ts +18 -0
- package/lib/locale/de/calendar.js +20 -0
- package/lib/locale/de/color-dialog.d.ts +8 -0
- package/lib/locale/de/color-dialog.js +15 -0
- package/lib/locale/de/combo-box.d.ts +6 -0
- package/lib/locale/de/combo-box.js +8 -0
- package/lib/locale/de/dialog.d.ts +5 -0
- package/lib/locale/de/dialog.js +8 -0
- package/lib/locale/de/pagination.d.ts +6 -0
- package/lib/locale/de/pagination.js +12 -0
- package/lib/locale/de/password-field.d.ts +5 -0
- package/lib/locale/de/password-field.js +7 -0
- package/lib/locale/de/search-field.d.ts +4 -0
- package/lib/locale/de/search-field.js +6 -0
- package/lib/locale/de/shared.d.ts +7 -0
- package/lib/locale/de/shared.js +10 -0
- package/lib/locale/de/time-picker.d.ts +10 -0
- package/lib/locale/de/time-picker.js +12 -0
- package/lib/locale/de/tree-select.d.ts +13 -0
- package/lib/locale/de/tree-select.js +19 -0
- package/lib/locale/en/calendar.d.ts +18 -0
- package/lib/locale/en/calendar.js +20 -0
- package/lib/locale/en/color-dialog.d.ts +8 -0
- package/lib/locale/en/color-dialog.js +15 -0
- package/lib/locale/en/combo-box.d.ts +6 -0
- package/lib/locale/en/combo-box.js +8 -0
- package/lib/locale/en/dialog.d.ts +5 -0
- package/lib/locale/en/dialog.js +7 -0
- package/lib/locale/en/pagination.d.ts +6 -0
- package/lib/locale/en/pagination.js +12 -0
- package/lib/locale/en/password-field.d.ts +5 -0
- package/lib/locale/en/password-field.js +7 -0
- package/lib/locale/en/search-field.d.ts +4 -0
- package/lib/locale/en/search-field.js +6 -0
- package/lib/locale/en/shared.d.ts +7 -0
- package/lib/locale/en/shared.js +10 -0
- package/lib/locale/en/time-picker.d.ts +10 -0
- package/lib/locale/en/time-picker.js +12 -0
- package/lib/locale/en/tree-select.d.ts +13 -0
- package/lib/locale/en/tree-select.js +19 -0
- package/lib/locale/ja/calendar.d.ts +18 -0
- package/lib/locale/ja/calendar.js +20 -0
- package/lib/locale/ja/color-dialog.d.ts +8 -0
- package/lib/locale/ja/color-dialog.js +15 -0
- package/lib/locale/ja/combo-box.d.ts +6 -0
- package/lib/locale/ja/combo-box.js +8 -0
- package/lib/locale/ja/dialog.d.ts +5 -0
- package/lib/locale/ja/dialog.js +8 -0
- package/lib/locale/ja/pagination.d.ts +6 -0
- package/lib/locale/ja/pagination.js +12 -0
- package/lib/locale/ja/password-field.d.ts +5 -0
- package/lib/locale/ja/password-field.js +7 -0
- package/lib/locale/ja/search-field.d.ts +4 -0
- package/lib/locale/ja/search-field.js +6 -0
- package/lib/locale/ja/shared.d.ts +7 -0
- package/lib/locale/ja/shared.js +10 -0
- package/lib/locale/ja/time-picker.d.ts +10 -0
- package/lib/locale/ja/time-picker.js +12 -0
- package/lib/locale/ja/tree-select.d.ts +13 -0
- package/lib/locale/ja/tree-select.js +19 -0
- package/lib/locale/zh/calendar.d.ts +18 -0
- package/lib/locale/zh/calendar.js +20 -0
- package/lib/locale/zh/color-dialog.d.ts +8 -0
- package/lib/locale/zh/color-dialog.js +15 -0
- package/lib/locale/zh/combo-box.d.ts +6 -0
- package/lib/locale/zh/combo-box.js +8 -0
- package/lib/locale/zh/dialog.d.ts +5 -0
- package/lib/locale/zh/dialog.js +8 -0
- package/lib/locale/zh/pagination.d.ts +6 -0
- package/lib/locale/zh/pagination.js +12 -0
- package/lib/locale/zh/password-field.d.ts +5 -0
- package/lib/locale/zh/password-field.js +7 -0
- package/lib/locale/zh/search-field.d.ts +4 -0
- package/lib/locale/zh/search-field.js +6 -0
- package/lib/locale/zh/shared.d.ts +7 -0
- package/lib/locale/zh/shared.js +10 -0
- package/lib/locale/zh/time-picker.d.ts +10 -0
- package/lib/locale/zh/time-picker.js +12 -0
- package/lib/locale/zh/tree-select.d.ts +13 -0
- package/lib/locale/zh/tree-select.js +19 -0
- package/lib/locale/zh-hant/calendar.d.ts +18 -0
- package/lib/locale/zh-hant/calendar.js +20 -0
- package/lib/locale/zh-hant/color-dialog.d.ts +8 -0
- package/lib/locale/zh-hant/color-dialog.js +15 -0
- package/lib/locale/zh-hant/combo-box.d.ts +6 -0
- package/lib/locale/zh-hant/combo-box.js +8 -0
- package/lib/locale/zh-hant/dialog.d.ts +5 -0
- package/lib/locale/zh-hant/dialog.js +8 -0
- package/lib/locale/zh-hant/pagination.d.ts +6 -0
- package/lib/locale/zh-hant/pagination.js +12 -0
- package/lib/locale/zh-hant/password-field.d.ts +5 -0
- package/lib/locale/zh-hant/password-field.js +7 -0
- package/lib/locale/zh-hant/search-field.d.ts +4 -0
- package/lib/locale/zh-hant/search-field.js +6 -0
- package/lib/locale/zh-hant/shared.d.ts +7 -0
- package/lib/locale/zh-hant/shared.js +10 -0
- package/lib/locale/zh-hant/time-picker.d.ts +10 -0
- package/lib/locale/zh-hant/time-picker.js +12 -0
- package/lib/locale/zh-hant/tree-select.d.ts +13 -0
- package/lib/locale/zh-hant/tree-select.js +19 -0
- package/lib/translation.d.ts +52 -0
- package/lib/translation.js +84 -0
- package/lib/types.d.ts +4 -0
- package/lib/types.js +1 -0
- package/package.json +97 -0
- package/tsconfig.tsbuildinfo +1 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
# Change Log
|
|
2
|
+
|
|
3
|
+
All notable changes to this project will be documented in this file.
|
|
4
|
+
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
|
+
|
|
6
|
+
## [5.4.1](https://github.com/Refinitiv/refinitiv-ui/compare/@refinitiv-ui/phrasebook@5.4.0...@refinitiv-ui/phrasebook@5.4.1) (2022-01-12)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @refinitiv-ui/phrasebook
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [5.4.0](https://github.com/Refinitiv/refinitiv-ui/compare/@refinitiv-ui/phrasebook@5.3.0...@refinitiv-ui/phrasebook@5.4.0) (2021-12-21)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Features
|
|
18
|
+
|
|
19
|
+
* **pagination:** support max unknown ([d3997ce](https://github.com/Refinitiv/refinitiv-ui/commit/d3997ce16abb9c01ecc43bcf6a80386b02cd3c12))
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
# [5.3.0](https://github.com/Refinitiv/refinitiv-ui/compare/@refinitiv-ui/phrasebook@5.2.1...@refinitiv-ui/phrasebook@5.3.0) (2021-12-15)
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
### Features
|
|
29
|
+
|
|
30
|
+
* add named exports to elements, themes and locales to support full backward compatibility ([#114](https://github.com/Refinitiv/refinitiv-ui/issues/114)) ([7d25d50](https://github.com/Refinitiv/refinitiv-ui/commit/7d25d50c649308fc5a17d086e9e01467a0dabfb9))
|
|
31
|
+
* **calendar:** add accessibility ([#73](https://github.com/Refinitiv/refinitiv-ui/issues/73)) ([a2576cc](https://github.com/Refinitiv/refinitiv-ui/commit/a2576cc8a1f0229bb5988af0c9d0bbf8ce7f765c))
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
## [5.2.1](https://github.com/Refinitiv/refinitiv-ui/compare/@refinitiv-ui/phrasebook@5.2.0...@refinitiv-ui/phrasebook@5.2.1) (2021-12-03)
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
### Bug Fixes
|
|
41
|
+
|
|
42
|
+
* **phrasebook:** change ICU syntax on Japanese language ([9b235ab](https://github.com/Refinitiv/refinitiv-ui/commit/9b235ab61fa0dae5c6ce97b66acee52dfd4028d4))
|
|
43
|
+
* **phrasebook:** export path should go to lib folder ([681028f](https://github.com/Refinitiv/refinitiv-ui/commit/681028ff960a831cfa888d0fdea38ddd40de815f))
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
# [5.2.0](https://github.com/Refinitiv/refinitiv-ui/compare/@refinitiv-ui/phrasebook@5.1.6...@refinitiv-ui/phrasebook@5.2.0) (2021-11-08)
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
### Features
|
|
53
|
+
|
|
54
|
+
* Lit@2 upgrade ([dbda63b](https://github.com/Refinitiv/refinitiv-ui/commit/dbda63be97257f891cb1f2c5ff46b638c70e0b15))
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
## [5.1.6](https://github.com/Refinitiv/refinitiv-ui/compare/@refinitiv-ui/phrasebook@5.1.3...@refinitiv-ui/phrasebook@5.1.6) (2021-10-25)
|
|
61
|
+
|
|
62
|
+
**Note:** Version bump only for package @refinitiv-ui/phrasebook
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
## [5.1.3](https://github.com/Refinitiv/refinitiv-ui/compare/@refinitiv-ui/phrasebook@5.1.2...@refinitiv-ui/phrasebook@5.1.3) (2021-10-11)
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
### Bug Fixes
|
|
72
|
+
|
|
73
|
+
* remove source maps reference from the production build ([655d0bb](https://github.com/Refinitiv/refinitiv-ui/commit/655d0bb57290e5fe1276bf1a99bd7a0190d7a2f8))
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
## [5.1.2](https://git.sami.int.thomsonreuters.com/elf/refinitiv-ui/compare/@refinitiv-ui/phrasebook@5.1.1...@refinitiv-ui/phrasebook@5.1.2) (2021-09-10)
|
|
80
|
+
|
|
81
|
+
**Note:** Version bump only for package @refinitiv-ui/phrasebook
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
## [5.1.1](https://git.sami.int.thomsonreuters.com/elf/refinitiv-ui/compare/@refinitiv-ui/phrasebook@5.1.0...@refinitiv-ui/phrasebook@5.1.1) (2021-08-27)
|
|
88
|
+
|
|
89
|
+
**Note:** Version bump only for package @refinitiv-ui/phrasebook
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
# [5.1.0](https://git.sami.int.thomsonreuters.com/elf/refinitiv-ui/compare/@refinitiv-ui/phrasebook@5.0.0...@refinitiv-ui/phrasebook@5.1.0) (2021-07-30)
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
### Features
|
|
99
|
+
|
|
100
|
+
* use latest FormatJS polyfills and ICU parser ([b7855e4](https://git.sami.int.thomsonreuters.com/elf/refinitiv-ui/commits/b7855e409d10d9c8b9f31a34953470549295a8ab))
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
# [5.0.0](https://git.sami.int.thomsonreuters.com/elf/refinitiv-ui/compare/@refinitiv-ui/phrasebook@5.0.0-beta.3...@refinitiv-ui/phrasebook@5.0.0) (2021-07-16)
|
|
107
|
+
|
|
108
|
+
**Note:** Version bump only for package @refinitiv-ui/phrasebook
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
# [5.0.0-beta.3](https://git.sami.int.thomsonreuters.com/elf/refinitiv-ui/compare/@refinitiv-ui/phrasebook@5.0.0-beta.1...@refinitiv-ui/phrasebook@5.0.0-beta.3) (2021-07-02)
|
|
115
|
+
|
|
116
|
+
### Bug Fixes
|
|
117
|
+
|
|
118
|
+
- change search result wording of combo-box ([93eec43](https://git.sami.int.thomsonreuters.com/elf/refinitiv-ui/commits/93eec43eeae82e4e2605a774a5411f0d224cd6d7))
|
|
119
|
+
|
|
120
|
+
# [5.0.0-beta.1](https://git.sami.int.thomsonreuters.com/elf/refinitiv-ui/compare/@refinitiv-ui/phrasebook@5.0.0-beta.0...@refinitiv-ui/phrasebook@5.0.0-beta.1) (2021-06-22)
|
|
121
|
+
|
|
122
|
+
**Note:** Version bump only for package @refinitiv-ui/phrasebook
|
|
123
|
+
|
|
124
|
+
# [5.0.0-beta.0](https://git.sami.int.thomsonreuters.com/elf/refinitiv-ui/compare/@refinitiv-ui/phrasebook@5.0.0-alpha.5...@refinitiv-ui/phrasebook@5.0.0-beta.0) (2021-06-22)
|
|
125
|
+
|
|
126
|
+
**Note:** Version bump only for package @refinitiv-ui/phrasebook
|
package/LICENSE
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
Copyright © 2021, Refinitiv.
|
|
2
|
+
|
|
3
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
you may not use this file except in compliance with the License.
|
|
5
|
+
You may obtain a copy of the License at
|
|
6
|
+
|
|
7
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
|
|
9
|
+
Unless required by applicable law or agreed to in writing, software
|
|
10
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
+
See the License for the specific language governing permissions and
|
|
13
|
+
limitations under the License.
|
package/README.md
ADDED
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
# Element Framework Phrasebook
|
|
2
|
+
|
|
3
|
+
Phrasebook is a collection of APIs to define translations. In addition, the package provides locales for all core Element Framework components. The phrasebook is primarily designed to be used with `@refinitiv-ui/i18n` and `@refinitiv-ui/translate` packages.
|
|
4
|
+
|
|
5
|
+
## Phrasebook
|
|
6
|
+
|
|
7
|
+
Phrasebook is a singleton that contains all translations. The developer can get a translation or observe translation changes.
|
|
8
|
+
|
|
9
|
+
### Define new translation
|
|
10
|
+
|
|
11
|
+
All translations are defined per _locale_ and _scope_. _locale_ can be a top level locale (for instance en, ru, zn) or a region locale (for instance en-GB, uz-Cyrl-UZ). _scope_ is usually an element name. If the scope is not defined, the translations are considered as default and are accessible for every scope.
|
|
12
|
+
|
|
13
|
+
To define a default locale:
|
|
14
|
+
|
|
15
|
+
```js
|
|
16
|
+
Phrasebook.define('en', { OK: 'OK' });
|
|
17
|
+
Phrasebook.define('ru', { OK: 'Хорошо' });
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
To define a scoped locale:
|
|
21
|
+
|
|
22
|
+
```js
|
|
23
|
+
Phrasebook.define('en', 'ef-element', { TEST_ELEMENT: 'Test Element' });
|
|
24
|
+
Phrasebook.define('ru', 'ef-element', {
|
|
25
|
+
TEST_ELEMENT: 'Элемент для тестирования',
|
|
26
|
+
});
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
You can get translations by calling `get` method. The response always includes scoped translations combined with default translations.
|
|
30
|
+
|
|
31
|
+
```js
|
|
32
|
+
// Get scoped translations. Outputs: { OK: 'OK', TEST_ELEMENT: 'Test Element' }
|
|
33
|
+
console.log(Phrasebook.get('en', 'ef-element'));
|
|
34
|
+
|
|
35
|
+
// Get default translations. Outputs: { OK: 'OK' }
|
|
36
|
+
console.log(Phrasebook.get('en'));
|
|
37
|
+
console.log(Phrasebook.get('en', 'unknown-element'));
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
You can get the list of supported locales for the scope by calling `supported` method:
|
|
41
|
+
|
|
42
|
+
```js
|
|
43
|
+
// Outputs: ['en', 'ru']
|
|
44
|
+
console.log(Phrasebook.supported('ef-element'));
|
|
45
|
+
|
|
46
|
+
// Outputs: []
|
|
47
|
+
console.log(Phrasebook.supported('unknown-element'));
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
### Observe Phrasebook
|
|
51
|
+
|
|
52
|
+
The main benefit of using Phrasebook is the ability to observe changes in translations. As soon as the translation changes or the new translation defined the callback function is called. This allows dynamic loading of translations (e.g. from CDN).
|
|
53
|
+
|
|
54
|
+
To observer translations:
|
|
55
|
+
|
|
56
|
+
```js
|
|
57
|
+
// Observe requires a unique key. Usually it is an HTML element, but can be any object, like Symbol
|
|
58
|
+
const element = document.createElement('ef-element');
|
|
59
|
+
Phrasebook.observe(element, 'ef-element', (locale) => {
|
|
60
|
+
console.log(locale);
|
|
61
|
+
});
|
|
62
|
+
|
|
63
|
+
// Outputs: 'en'.
|
|
64
|
+
Phrasebook.define('en', 'ef-element', { TEST_ELEMENT: 'Test Element' });
|
|
65
|
+
|
|
66
|
+
// Publishing default calls callback as well. Outputs: 'ru'.
|
|
67
|
+
Phrasebook.define('ru', { OK: 'Хорошо' });
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
To stop observing translation use `disconnect` method. This is usually required when the element is removed from DOM tree.
|
|
71
|
+
|
|
72
|
+
```js
|
|
73
|
+
Phrasebook.disconnect(element);
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
## Core Element Translations
|
|
77
|
+
|
|
78
|
+
The package is deployed with all translations required by Element Framework components.
|
|
79
|
+
|
|
80
|
+
### Structure
|
|
81
|
+
|
|
82
|
+
Define locales inside `src\locale`. The following structure must be followed:
|
|
83
|
+
|
|
84
|
+
```text
|
|
85
|
+
locale/
|
|
86
|
+
|--[locale]/
|
|
87
|
+
| |--[component-name].ts
|
|
88
|
+
| |--shared.ts
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
You must ensure that all keys are populated for every locale.
|
|
92
|
+
|
|
93
|
+
### Format
|
|
94
|
+
|
|
95
|
+
The key is the reference with which to return the translation value.
|
|
96
|
+
|
|
97
|
+
Each translation value is in the [ICU format](http://userguide.icu-project.org/formatparse/messages).
|
|
98
|
+
A simpler formatting guide can be found at [messageformat](https://messageformat.github.io/messageformat/page-guide), or for an online checker: [Translate ICU messages](https://format-message.github.io/icu-message-format-for-translators/).
|
|
99
|
+
|
|
100
|
+
```ts
|
|
101
|
+
import { Phrasebook } from '../../';
|
|
102
|
+
import './shared';
|
|
103
|
+
|
|
104
|
+
const translations = {
|
|
105
|
+
KEY_TO_USE:
|
|
106
|
+
'Du hast {numPhotos, plural, =0 {keine Bilder.} =1 {ein Bild.} other {# Bilder.}}',
|
|
107
|
+
};
|
|
108
|
+
|
|
109
|
+
Phrasebook.define('de', 'emerald-color-dialog', translations);
|
|
110
|
+
|
|
111
|
+
export default translations;
|
|
112
|
+
```
|
package/lib/index.d.ts
ADDED
package/lib/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Phrasebook, ObserverKey } from './translation.js';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
declare const translations: {
|
|
2
|
+
PREVIOUS_MONTH: string;
|
|
3
|
+
NEXT_MONTH: string;
|
|
4
|
+
PREVIOUS_YEAR: string;
|
|
5
|
+
NEXT_YEAR: string;
|
|
6
|
+
PREVIOUS_DECADE: string;
|
|
7
|
+
NEXT_DECADE: string;
|
|
8
|
+
YEAR_SELECTOR: string;
|
|
9
|
+
DATE_SELECTOR: string;
|
|
10
|
+
CELL_LABEL: string;
|
|
11
|
+
SELECTED: string;
|
|
12
|
+
NOW: string;
|
|
13
|
+
SELECTED_NOW: string;
|
|
14
|
+
SELECTED_DATE: string;
|
|
15
|
+
SELECTED_RANGE: string;
|
|
16
|
+
SELECTED_NONE: string;
|
|
17
|
+
};
|
|
18
|
+
export default translations;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Phrasebook } from '../../translation.js';
|
|
2
|
+
const translations = {
|
|
3
|
+
PREVIOUS_MONTH: 'Previous month',
|
|
4
|
+
NEXT_MONTH: 'Next month',
|
|
5
|
+
PREVIOUS_YEAR: 'Previous year',
|
|
6
|
+
NEXT_YEAR: 'Next year',
|
|
7
|
+
PREVIOUS_DECADE: 'Previous decade',
|
|
8
|
+
NEXT_DECADE: 'Next decade',
|
|
9
|
+
YEAR_SELECTOR: 'Click to select year',
|
|
10
|
+
DATE_SELECTOR: 'Click to select date',
|
|
11
|
+
CELL_LABEL: '{view, select, year {{value, date, ::yyyy}} month {{value, date, ::MMMM-yyyy}} other {{value, date, full}}}',
|
|
12
|
+
SELECTED: 'Selected: {view, select, year {{value, date, ::yyyy}} month {{value, date, ::MMMM-yyyy}} other {{value, date, full}}}',
|
|
13
|
+
NOW: '{view, select, year {Current year, {value, date, ::yyyy}} month {Current month, {value, date, ::MMMM-yyyy}} other {Today, {value, date, full}}}',
|
|
14
|
+
SELECTED_NOW: 'Selected: {view, select, year {current year, {value, date, ::yyyy}} month {current month, {value, date, ::MMMM-yyyy}} other {today, {value, date, full}}}',
|
|
15
|
+
SELECTED_DATE: 'Selected {count, plural, =1 {date is {value, date, full}} other {# dates, {value, date, full} and others}}',
|
|
16
|
+
SELECTED_RANGE: 'Selected range is from {from, date, full}{to, select, null {} other { to {to, date, full}}}',
|
|
17
|
+
SELECTED_NONE: 'Selected none. Choose {range, select, true {date range} other {{multiple, select, true {dates} other {date}}}}'
|
|
18
|
+
};
|
|
19
|
+
Phrasebook.define('de', 'ef-calendar', translations);
|
|
20
|
+
export default translations;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
// Component docs https://elf.int.refinitiv.com/elements/color-dialog.html
|
|
2
|
+
import { Phrasebook } from '../../translation.js';
|
|
3
|
+
import './shared.js';
|
|
4
|
+
import dialogTranslations from './dialog';
|
|
5
|
+
const translations = {
|
|
6
|
+
...dialogTranslations,
|
|
7
|
+
// Dialog title
|
|
8
|
+
HEADER: 'Farbauswahl',
|
|
9
|
+
// Color values for color mixer, has space for a single character
|
|
10
|
+
RED: 'R',
|
|
11
|
+
GREEN: 'G',
|
|
12
|
+
BLUE: 'B'
|
|
13
|
+
};
|
|
14
|
+
Phrasebook.define('de', 'ef-color-dialog', translations);
|
|
15
|
+
export default translations;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// Component docs https://elf.int.refinitiv.com/elements/pagination.html
|
|
2
|
+
import { Phrasebook } from '../../translation.js';
|
|
3
|
+
import './shared.js';
|
|
4
|
+
const translations = {
|
|
5
|
+
// page: current page #
|
|
6
|
+
PAGE: 'Seite {page}',
|
|
7
|
+
// page: current page #
|
|
8
|
+
// pageTotal: total number of pages
|
|
9
|
+
PAGE_OF: 'Seite {page} von {pageTotal}'
|
|
10
|
+
};
|
|
11
|
+
Phrasebook.define('de', 'ef-pagination', translations);
|
|
12
|
+
export default translations;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Phrasebook } from '../../translation.js';
|
|
2
|
+
// these are used for buttons
|
|
3
|
+
const translations = {
|
|
4
|
+
CANCEL: 'Abbrechen',
|
|
5
|
+
OK: 'OK',
|
|
6
|
+
CLOSE: 'Schließen',
|
|
7
|
+
APPLY: 'Anwenden'
|
|
8
|
+
};
|
|
9
|
+
Phrasebook.define('de', translations);
|
|
10
|
+
export default translations;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Phrasebook } from '../../translation.js';
|
|
2
|
+
const translations = {
|
|
3
|
+
BEFORE_MIDDAY: 'Before Midday',
|
|
4
|
+
AFTER_MIDDAY: 'After Midday',
|
|
5
|
+
TOGGLE_TIME_PERIOD: 'Toggle Time Period',
|
|
6
|
+
SELECT_HOURS: '{value, select, null {Select hours} other {{value, plural, =1 {# hour} other {# hours}}}}',
|
|
7
|
+
SELECT_MINUTES: '{value, select, null {Select minutes} other {{value, plural, =1 {# minute} other {# minutes}}}}',
|
|
8
|
+
SELECT_SECONDS: '{value, select, null {Select seconds} other {{value, plural, =1 {# second} other {# seconds}}}}',
|
|
9
|
+
SELECTED: '{value, select, null {Selected none. Choose time} other {Selected time is: {showSeconds, select, true {{amPm, select, true {{value, time, ::hmsa}} other {{value, time, ::Hms}}}} other {{amPm, select, true {{value, time, ::hma}} other {{value, time, ::Hm}}}}}}}'
|
|
10
|
+
};
|
|
11
|
+
Phrasebook.define('de', 'ef-time-picker', translations);
|
|
12
|
+
export default translations;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import './shared.js';
|
|
2
|
+
declare const translations: {
|
|
3
|
+
FULL_LIST: string;
|
|
4
|
+
SELECTED: string;
|
|
5
|
+
EXPAND_COLLAPSE: string;
|
|
6
|
+
SELECT_CONTROL: string;
|
|
7
|
+
DONE: string;
|
|
8
|
+
SELECTED_NUM: string;
|
|
9
|
+
MATCHES_NUM: string;
|
|
10
|
+
MULTIPLE_ITEMS: string;
|
|
11
|
+
NO_OPTIONS: string;
|
|
12
|
+
};
|
|
13
|
+
export default translations;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
// Component docs https://elf.int.refinitiv.com/elements/tree-select.html
|
|
2
|
+
import { Phrasebook } from '../../translation.js';
|
|
3
|
+
import './shared.js';
|
|
4
|
+
import comboboxTranslations from './combo-box';
|
|
5
|
+
const translations = {
|
|
6
|
+
...comboboxTranslations,
|
|
7
|
+
// used as a toggle control
|
|
8
|
+
FULL_LIST: 'Vollständige Liste',
|
|
9
|
+
SELECTED: 'Ausgewählt',
|
|
10
|
+
EXPAND_COLLAPSE: '{expansion, select, true {Alle einklappen} other {Alle ausklappen}}',
|
|
11
|
+
SELECT_CONTROL: '{selected, select, true {Auswahl aufheben} other {Alle auswählen}}',
|
|
12
|
+
// button control
|
|
13
|
+
DONE: 'Fertig',
|
|
14
|
+
// selection/filter feedback
|
|
15
|
+
SELECTED_NUM: '{numSelected, plural, =0 {} =1 {Eine Auswahl.} other {# ausgewählt.}}',
|
|
16
|
+
MATCHES_NUM: '{numMatched, plural, =0 {Keine Ergebnisse} =1 {1 Ergebnis} other {# Ergebnisse}}'
|
|
17
|
+
};
|
|
18
|
+
Phrasebook.define('de', 'ef-tree-select', translations);
|
|
19
|
+
export default translations;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
declare const translations: {
|
|
2
|
+
PREVIOUS_MONTH: string;
|
|
3
|
+
NEXT_MONTH: string;
|
|
4
|
+
PREVIOUS_YEAR: string;
|
|
5
|
+
NEXT_YEAR: string;
|
|
6
|
+
PREVIOUS_DECADE: string;
|
|
7
|
+
NEXT_DECADE: string;
|
|
8
|
+
YEAR_SELECTOR: string;
|
|
9
|
+
DATE_SELECTOR: string;
|
|
10
|
+
CELL_LABEL: string;
|
|
11
|
+
SELECTED: string;
|
|
12
|
+
NOW: string;
|
|
13
|
+
SELECTED_NOW: string;
|
|
14
|
+
SELECTED_DATE: string;
|
|
15
|
+
SELECTED_RANGE: string;
|
|
16
|
+
SELECTED_NONE: string;
|
|
17
|
+
};
|
|
18
|
+
export default translations;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Phrasebook } from '../../translation.js';
|
|
2
|
+
const translations = {
|
|
3
|
+
PREVIOUS_MONTH: 'Previous month',
|
|
4
|
+
NEXT_MONTH: 'Next month',
|
|
5
|
+
PREVIOUS_YEAR: 'Previous year',
|
|
6
|
+
NEXT_YEAR: 'Next year',
|
|
7
|
+
PREVIOUS_DECADE: 'Previous decade',
|
|
8
|
+
NEXT_DECADE: 'Next decade',
|
|
9
|
+
YEAR_SELECTOR: 'Click to select year',
|
|
10
|
+
DATE_SELECTOR: 'Click to select date',
|
|
11
|
+
CELL_LABEL: '{view, select, year {{value, date, ::yyyy}} month {{value, date, ::MMMM-yyyy}} other {{value, date, full}}}',
|
|
12
|
+
SELECTED: 'Selected: {view, select, year {{value, date, ::yyyy}} month {{value, date, ::MMMM-yyyy}} other {{value, date, full}}}',
|
|
13
|
+
NOW: '{view, select, year {Current year, {value, date, ::yyyy}} month {Current month, {value, date, ::MMMM-yyyy}} other {Today, {value, date, full}}}',
|
|
14
|
+
SELECTED_NOW: 'Selected: {view, select, year {current year, {value, date, ::yyyy}} month {current month, {value, date, ::MMMM-yyyy}} other {today, {value, date, full}}}',
|
|
15
|
+
SELECTED_DATE: 'Selected {count, plural, =1 {date is {value, date, full}} other {# dates, {value, date, full} and others}}',
|
|
16
|
+
SELECTED_RANGE: 'Selected range is from {from, date, full}{to, select, null {} other { to {to, date, full}}}',
|
|
17
|
+
SELECTED_NONE: 'Selected none. Choose {range, select, true {date range} other {{multiple, select, true {dates} other {date}}}}'
|
|
18
|
+
};
|
|
19
|
+
Phrasebook.define('en', 'ef-calendar', translations);
|
|
20
|
+
export default translations;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
// Component docs https://elf.int.refinitiv.com/elements/color-dialog.html
|
|
2
|
+
import { Phrasebook } from '../../translation.js';
|
|
3
|
+
import './shared.js';
|
|
4
|
+
import dialogTranslations from './dialog';
|
|
5
|
+
const translations = {
|
|
6
|
+
...dialogTranslations,
|
|
7
|
+
// Dialog title
|
|
8
|
+
HEADER: 'Color Picker',
|
|
9
|
+
// Color values for color mixer, has space for a single character
|
|
10
|
+
RED: 'R',
|
|
11
|
+
GREEN: 'G',
|
|
12
|
+
BLUE: 'B'
|
|
13
|
+
};
|
|
14
|
+
Phrasebook.define('en', 'ef-color-dialog', translations);
|
|
15
|
+
export default translations;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// Component docs https://elf.int.refinitiv.com/elements/pagination.html
|
|
2
|
+
import { Phrasebook } from '../../translation.js';
|
|
3
|
+
import './shared.js';
|
|
4
|
+
const translations = {
|
|
5
|
+
// page: current page #
|
|
6
|
+
PAGE: 'Page {page}',
|
|
7
|
+
// page: current page #
|
|
8
|
+
// pageTotal: total number of pages
|
|
9
|
+
PAGE_OF: 'Page {page} of {pageTotal}'
|
|
10
|
+
};
|
|
11
|
+
Phrasebook.define('en', 'ef-pagination', translations);
|
|
12
|
+
export default translations;
|