@refinitiv-ui/phrasebook 5.1.6 → 5.3.0-alpha.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/CHANGELOG.md +36 -2
- package/lib/index.d.ts +2 -2
- package/lib/index.js +1 -1
- 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 +1 -1
- package/lib/locale/de/color-dialog.js +2 -2
- package/lib/locale/de/combo-box.d.ts +1 -1
- package/lib/locale/de/combo-box.js +2 -2
- package/lib/locale/de/dialog.d.ts +1 -1
- package/lib/locale/de/dialog.js +2 -2
- package/lib/locale/de/pagination.d.ts +1 -1
- package/lib/locale/de/pagination.js +2 -2
- 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.js +1 -1
- package/lib/locale/de/tree-select.d.ts +1 -1
- package/lib/locale/de/tree-select.js +2 -2
- 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 +1 -1
- package/lib/locale/en/color-dialog.js +2 -2
- package/lib/locale/en/combo-box.d.ts +1 -1
- package/lib/locale/en/combo-box.js +2 -2
- package/lib/locale/en/dialog.d.ts +1 -1
- package/lib/locale/en/dialog.js +2 -2
- package/lib/locale/en/pagination.d.ts +1 -1
- package/lib/locale/en/pagination.js +2 -2
- 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.js +1 -1
- package/lib/locale/en/tree-select.d.ts +1 -1
- package/lib/locale/en/tree-select.js +2 -2
- 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 +1 -1
- package/lib/locale/ja/color-dialog.js +2 -2
- package/lib/locale/ja/combo-box.d.ts +1 -1
- package/lib/locale/ja/combo-box.js +2 -2
- package/lib/locale/ja/dialog.d.ts +1 -1
- package/lib/locale/ja/dialog.js +2 -2
- package/lib/locale/ja/pagination.d.ts +1 -1
- package/lib/locale/ja/pagination.js +2 -2
- 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.js +1 -1
- package/lib/locale/ja/tree-select.d.ts +1 -1
- package/lib/locale/ja/tree-select.js +3 -3
- 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 +1 -1
- package/lib/locale/zh/color-dialog.js +2 -2
- package/lib/locale/zh/combo-box.d.ts +1 -1
- package/lib/locale/zh/combo-box.js +2 -2
- package/lib/locale/zh/dialog.d.ts +1 -1
- package/lib/locale/zh/dialog.js +2 -2
- package/lib/locale/zh/pagination.d.ts +1 -1
- package/lib/locale/zh/pagination.js +2 -2
- 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.js +1 -1
- package/lib/locale/zh/tree-select.d.ts +1 -1
- package/lib/locale/zh/tree-select.js +2 -2
- 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 +1 -1
- package/lib/locale/zh-hant/color-dialog.js +2 -2
- package/lib/locale/zh-hant/combo-box.d.ts +1 -1
- package/lib/locale/zh-hant/combo-box.js +2 -2
- package/lib/locale/zh-hant/dialog.d.ts +1 -1
- package/lib/locale/zh-hant/dialog.js +2 -2
- package/lib/locale/zh-hant/pagination.d.ts +1 -1
- package/lib/locale/zh-hant/pagination.js +2 -2
- 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.js +1 -1
- package/lib/locale/zh-hant/tree-select.d.ts +1 -1
- package/lib/locale/zh-hant/tree-select.js +2 -2
- package/lib/translation.d.ts +1 -1
- package/package.json +99 -3
package/CHANGELOG.md
CHANGED
|
@@ -3,7 +3,18 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
# [5.3.0-alpha.0](https://github.com/Refinitiv/refinitiv-ui/compare/@refinitiv-ui/phrasebook@5.2.2-alpha.0...@refinitiv-ui/phrasebook@5.3.0-alpha.0) (2021-12-14)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **calendar:** add accessibility ([#73](https://github.com/Refinitiv/refinitiv-ui/issues/73)) ([a2576cc](https://github.com/Refinitiv/refinitiv-ui/commit/a2576cc8a1f0229bb5988af0c9d0bbf8ce7f765c))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
## [5.2.2-alpha.0](https://github.com/Refinitiv/refinitiv-ui/compare/@refinitiv-ui/phrasebook@5.2.1...@refinitiv-ui/phrasebook@5.2.2-alpha.0) (2021-12-13)
|
|
7
18
|
|
|
8
19
|
**Note:** Version bump only for package @refinitiv-ui/phrasebook
|
|
9
20
|
|
|
@@ -11,7 +22,30 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
11
22
|
|
|
12
23
|
|
|
13
24
|
|
|
14
|
-
## [5.1
|
|
25
|
+
## [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)
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
### Bug Fixes
|
|
29
|
+
|
|
30
|
+
* **phrasebook:** change ICU syntax on Japanese language ([9b235ab](https://github.com/Refinitiv/refinitiv-ui/commit/9b235ab61fa0dae5c6ce97b66acee52dfd4028d4))
|
|
31
|
+
* **phrasebook:** export path should go to lib folder ([681028f](https://github.com/Refinitiv/refinitiv-ui/commit/681028ff960a831cfa888d0fdea38ddd40de815f))
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
# [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)
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
### Features
|
|
41
|
+
|
|
42
|
+
* Lit@2 upgrade ([dbda63b](https://github.com/Refinitiv/refinitiv-ui/commit/dbda63be97257f891cb1f2c5ff46b638c70e0b15))
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
## [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)
|
|
15
49
|
|
|
16
50
|
**Note:** Version bump only for package @refinitiv-ui/phrasebook
|
|
17
51
|
|
package/lib/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { Translations } from './types';
|
|
2
|
-
export { Phrasebook, ObserverCallback, ObserverKey } from './translation';
|
|
1
|
+
export type { Translations } from './types';
|
|
2
|
+
export { Phrasebook, ObserverCallback, ObserverKey } from './translation.js';
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { Phrasebook, ObserverKey } from './translation';
|
|
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;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Component docs https://elf.int.refinitiv.com/elements/color-dialog.html
|
|
2
|
-
import { Phrasebook } from '../../';
|
|
3
|
-
import './shared';
|
|
2
|
+
import { Phrasebook } from '../../translation.js';
|
|
3
|
+
import './shared.js';
|
|
4
4
|
import dialogTranslations from './dialog';
|
|
5
5
|
const translations = Object.assign(Object.assign({}, dialogTranslations), {
|
|
6
6
|
// Dialog title
|
package/lib/locale/de/dialog.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Component docs https://elf.int.refinitiv.com/elements/pagination.html
|
|
2
|
-
import { Phrasebook } from '../../';
|
|
3
|
-
import './shared';
|
|
2
|
+
import { Phrasebook } from '../../translation.js';
|
|
3
|
+
import './shared.js';
|
|
4
4
|
const translations = {
|
|
5
5
|
// page: current page #
|
|
6
6
|
// pageTotal: total number of pages
|
package/lib/locale/de/shared.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Component docs https://elf.int.refinitiv.com/elements/tree-select.html
|
|
2
|
-
import { Phrasebook } from '../../';
|
|
3
|
-
import './shared';
|
|
2
|
+
import { Phrasebook } from '../../translation.js';
|
|
3
|
+
import './shared.js';
|
|
4
4
|
import comboboxTranslations from './combo-box';
|
|
5
5
|
const translations = Object.assign(Object.assign({}, comboboxTranslations), {
|
|
6
6
|
// used as a toggle control
|
|
@@ -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;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Component docs https://elf.int.refinitiv.com/elements/color-dialog.html
|
|
2
|
-
import { Phrasebook } from '../../';
|
|
3
|
-
import './shared';
|
|
2
|
+
import { Phrasebook } from '../../translation.js';
|
|
3
|
+
import './shared.js';
|
|
4
4
|
import dialogTranslations from './dialog';
|
|
5
5
|
const translations = Object.assign(Object.assign({}, dialogTranslations), {
|
|
6
6
|
// Dialog title
|
package/lib/locale/en/dialog.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Component docs https://elf.int.refinitiv.com/elements/pagination.html
|
|
2
|
-
import { Phrasebook } from '../../';
|
|
3
|
-
import './shared';
|
|
2
|
+
import { Phrasebook } from '../../translation.js';
|
|
3
|
+
import './shared.js';
|
|
4
4
|
const translations = {
|
|
5
5
|
// page: current page #
|
|
6
6
|
// pageTotal: total number of pages
|
package/lib/locale/en/shared.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Component docs https://elf.int.refinitiv.com/elements/tree-select.html
|
|
2
|
-
import { Phrasebook } from '../../';
|
|
3
|
-
import './shared';
|
|
2
|
+
import { Phrasebook } from '../../translation.js';
|
|
3
|
+
import './shared.js';
|
|
4
4
|
import comboboxTranslations from './combo-box';
|
|
5
5
|
const translations = Object.assign(Object.assign({}, comboboxTranslations), {
|
|
6
6
|
// used as a toggle control
|
|
@@ -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('ja', 'ef-calendar', translations);
|
|
20
|
+
export default translations;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Component docs https://elf.int.refinitiv.com/elements/color-dialog.html
|
|
2
|
-
import { Phrasebook } from '../../';
|
|
3
|
-
import './shared';
|
|
2
|
+
import { Phrasebook } from '../../translation.js';
|
|
3
|
+
import './shared.js';
|
|
4
4
|
import dialogTranslations from './dialog';
|
|
5
5
|
const translations = Object.assign(Object.assign({}, dialogTranslations), {
|
|
6
6
|
// Dialog title
|
package/lib/locale/ja/dialog.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Component docs https://elf.int.refinitiv.com/elements/pagination.html
|
|
2
|
-
import { Phrasebook } from '../../';
|
|
3
|
-
import './shared';
|
|
2
|
+
import { Phrasebook } from '../../translation.js';
|
|
3
|
+
import './shared.js';
|
|
4
4
|
const translations = {
|
|
5
5
|
// page: current page #
|
|
6
6
|
// pageTotal: total number of pages
|
package/lib/locale/ja/shared.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
// Component docs https://elf.int.refinitiv.com/elements/tree-select.html
|
|
2
|
-
import { Phrasebook } from '../../';
|
|
3
|
-
import './shared';
|
|
2
|
+
import { Phrasebook } from '../../translation.js';
|
|
3
|
+
import './shared.js';
|
|
4
4
|
import comboboxTranslations from './combo-box';
|
|
5
5
|
const translations = Object.assign(Object.assign({}, comboboxTranslations), {
|
|
6
6
|
// used as a toggle control
|
|
7
|
-
FULL_LIST: 'すべて', SELECTED: '選択項目のみ', EXPAND_COLLAPSE: '{expansion, select, false {すべてを展開}
|
|
7
|
+
FULL_LIST: 'すべて', SELECTED: '選択項目のみ', EXPAND_COLLAPSE: '{expansion, select, false {すべてを展開} other {すべてを折りたたむ}}', SELECT_CONTROL: '{selected, select, false {すべて選択} other {選択をすべて解除}}',
|
|
8
8
|
// button control
|
|
9
9
|
DONE: '完了',
|
|
10
10
|
// selection/filter feedback
|
|
@@ -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('zh', 'ef-calendar', translations);
|
|
20
|
+
export default translations;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Component docs https://elf.int.refinitiv.com/elements/color-dialog.html
|
|
2
|
-
import { Phrasebook } from '../../';
|
|
3
|
-
import './shared';
|
|
2
|
+
import { Phrasebook } from '../../translation.js';
|
|
3
|
+
import './shared.js';
|
|
4
4
|
import dialogTranslations from './dialog';
|
|
5
5
|
const translations = Object.assign(Object.assign({}, dialogTranslations), {
|
|
6
6
|
// Dialog title
|
package/lib/locale/zh/dialog.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Component docs https://elf.int.refinitiv.com/elements/pagination.html
|
|
2
|
-
import { Phrasebook } from '../../';
|
|
3
|
-
import './shared';
|
|
2
|
+
import { Phrasebook } from '../../translation.js';
|
|
3
|
+
import './shared.js';
|
|
4
4
|
const translations = {
|
|
5
5
|
// page: current page #
|
|
6
6
|
// pageTotal: total number of pages
|
package/lib/locale/zh/shared.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Component docs https://elf.int.refinitiv.com/elements/tree-select.html
|
|
2
|
-
import { Phrasebook } from '../../';
|
|
3
|
-
import './shared';
|
|
2
|
+
import { Phrasebook } from '../../translation.js';
|
|
3
|
+
import './shared.js';
|
|
4
4
|
import comboboxTranslations from './combo-box';
|
|
5
5
|
const translations = Object.assign(Object.assign({}, comboboxTranslations), {
|
|
6
6
|
// used as a toggle control
|
|
@@ -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('zh-Hant', 'ef-calendar', translations);
|
|
20
|
+
export default translations;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Component docs https://elf.int.refinitiv.com/elements/color-dialog.html
|
|
2
|
-
import { Phrasebook } from '../../';
|
|
3
|
-
import './shared';
|
|
2
|
+
import { Phrasebook } from '../../translation.js';
|
|
3
|
+
import './shared.js';
|
|
4
4
|
import dialogTranslations from './dialog';
|
|
5
5
|
const translations = Object.assign(Object.assign({}, dialogTranslations), {
|
|
6
6
|
// Dialog title
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Component docs https://elf.int.refinitiv.com/elements/pagination.html
|
|
2
|
-
import { Phrasebook } from '../../';
|
|
3
|
-
import './shared';
|
|
2
|
+
import { Phrasebook } from '../../translation.js';
|
|
3
|
+
import './shared.js';
|
|
4
4
|
const translations = {
|
|
5
5
|
// page: current page #
|
|
6
6
|
// pageTotal: total number of pages
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Component docs https://elf.int.refinitiv.com/elements/tree-select.html
|
|
2
|
-
import { Phrasebook } from '../../';
|
|
3
|
-
import './shared';
|
|
2
|
+
import { Phrasebook } from '../../translation.js';
|
|
3
|
+
import './shared.js';
|
|
4
4
|
import comboboxTranslations from './combo-box';
|
|
5
5
|
const translations = Object.assign(Object.assign({}, comboboxTranslations), {
|
|
6
6
|
// used as a toggle control
|
package/lib/translation.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@refinitiv-ui/phrasebook",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.3.0-alpha.0",
|
|
4
4
|
"description": "Collection of messages in EF components for translation",
|
|
5
5
|
"author": "Refinitiv",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -12,6 +12,99 @@
|
|
|
12
12
|
"url": "git@github.com:Refinitiv/refinitiv-ui.git",
|
|
13
13
|
"directory": "packages/phrasebook"
|
|
14
14
|
},
|
|
15
|
+
"exports": {
|
|
16
|
+
".": "./lib/index.js",
|
|
17
|
+
"./locale/de/calendar.js": "./lib/locale/de/calendar.js",
|
|
18
|
+
"./locale/de/color-dialog.js": "./lib/locale/de/color-dialog.js",
|
|
19
|
+
"./locale/de/combo-box.js": "./lib/locale/de/combo-box.js",
|
|
20
|
+
"./locale/de/dialog.js": "./lib/locale/de/dialog.js",
|
|
21
|
+
"./locale/de/pagination.js": "./lib/locale/de/pagination.js",
|
|
22
|
+
"./locale/de/password-field.js": "./lib/locale/de/password-field.js",
|
|
23
|
+
"./locale/de/search-field.js": "./lib/locale/de/search-field.js",
|
|
24
|
+
"./locale/de/shared.js": "./lib/locale/de/shared.js",
|
|
25
|
+
"./locale/de/tree-select.js": "./lib/locale/de/tree-select.js",
|
|
26
|
+
"./locale/en/calendar.js": "./lib/locale/en/calendar.js",
|
|
27
|
+
"./locale/en/color-dialog.js": "./lib/locale/en/color-dialog.js",
|
|
28
|
+
"./locale/en/combo-box.js": "./lib/locale/en/combo-box.js",
|
|
29
|
+
"./locale/en/dialog.js": "./lib/locale/en/dialog.js",
|
|
30
|
+
"./locale/en/pagination.js": "./lib/locale/en/pagination.js",
|
|
31
|
+
"./locale/en/password-field.js": "./lib/locale/en/password-field.js",
|
|
32
|
+
"./locale/en/search-field.js": "./lib/locale/en/search-field.js",
|
|
33
|
+
"./locale/en/shared.js": "./lib/locale/en/shared.js",
|
|
34
|
+
"./locale/en/tree-select.js": "./lib/locale/en/tree-select.js",
|
|
35
|
+
"./locale/ja/calendar.js": "./lib/locale/ja/calendar.js",
|
|
36
|
+
"./locale/ja/color-dialog.js": "./lib/locale/ja/color-dialog.js",
|
|
37
|
+
"./locale/ja/combo-box.js": "./lib/locale/ja/combo-box.js",
|
|
38
|
+
"./locale/ja/dialog.js": "./lib/locale/ja/dialog.js",
|
|
39
|
+
"./locale/ja/pagination.js": "./lib/locale/ja/pagination.js",
|
|
40
|
+
"./locale/ja/password-field.js": "./lib/locale/ja/password-field.js",
|
|
41
|
+
"./locale/ja/search-field.js": "./lib/locale/ja/search-field.js",
|
|
42
|
+
"./locale/ja/shared.js": "./lib/locale/ja/shared.js",
|
|
43
|
+
"./locale/ja/tree-select.js": "./lib/locale/ja/tree-select.js",
|
|
44
|
+
"./locale/zh/calendar.js": "./lib/locale/zh/calendar.js",
|
|
45
|
+
"./locale/zh/color-dialog.js": "./lib/locale/zh/color-dialog.js",
|
|
46
|
+
"./locale/zh/combo-box.js": "./lib/locale/zh/combo-box.js",
|
|
47
|
+
"./locale/zh/dialog.js": "./lib/locale/zh/dialog.js",
|
|
48
|
+
"./locale/zh/pagination.js": "./lib/locale/zh/pagination.js",
|
|
49
|
+
"./locale/zh/password-field.js": "./lib/locale/zh/password-field.js",
|
|
50
|
+
"./locale/zh/search-field.js": "./lib/locale/zh/search-field.js",
|
|
51
|
+
"./locale/zh/shared.js": "./lib/locale/zh/shared.js",
|
|
52
|
+
"./locale/zh/tree-select.js": "./lib/locale/zh/tree-select.js",
|
|
53
|
+
"./locale/zh-hant/calendar.js": "./lib/locale/zh-hant/calendar.js",
|
|
54
|
+
"./locale/zh-hant/color-dialog.js": "./lib/locale/zh-hant/color-dialog.js",
|
|
55
|
+
"./locale/zh-hant/combo-box.js": "./lib/locale/zh-hant/combo-box.js",
|
|
56
|
+
"./locale/zh-hant/dialog.js": "./lib/locale/zh-hant/dialog.js",
|
|
57
|
+
"./locale/zh-hant/pagination.js": "./lib/locale/zh-hant/pagination.js",
|
|
58
|
+
"./locale/zh-hant/password-field.js": "./lib/locale/zh-hant/password-field.js",
|
|
59
|
+
"./locale/zh-hant/search-field.js": "./lib/locale/zh-hant/search-field.js",
|
|
60
|
+
"./locale/zh-hant/shared.js": "./lib/locale/zh-hant/shared.js",
|
|
61
|
+
"./locale/zh-hant/tree-select.js": "./lib/locale/zh-hant/tree-select.js",
|
|
62
|
+
"./lib/locale/de/calendar.js": "./lib/locale/de/calendar.js",
|
|
63
|
+
"./lib/locale/de/color-dialog.js": "./lib/locale/de/color-dialog.js",
|
|
64
|
+
"./lib/locale/de/combo-box.js": "./lib/locale/de/combo-box.js",
|
|
65
|
+
"./lib/locale/de/dialog.js": "./lib/locale/de/dialog.js",
|
|
66
|
+
"./lib/locale/de/pagination.js": "./lib/locale/de/pagination.js",
|
|
67
|
+
"./lib/locale/de/password-field.js": "./lib/locale/de/password-field.js",
|
|
68
|
+
"./lib/locale/de/search-field.js": "./lib/locale/de/search-field.js",
|
|
69
|
+
"./lib/locale/de/shared.js": "./lib/locale/de/shared.js",
|
|
70
|
+
"./lib/locale/de/tree-select.js": "./lib/locale/de/tree-select.js",
|
|
71
|
+
"./lib/locale/en/calendar.js": "./lib/locale/en/calendar.js",
|
|
72
|
+
"./lib/locale/en/color-dialog.js": "./lib/locale/en/color-dialog.js",
|
|
73
|
+
"./lib/locale/en/combo-box.js": "./lib/locale/en/combo-box.js",
|
|
74
|
+
"./lib/locale/en/dialog.js": "./lib/locale/en/dialog.js",
|
|
75
|
+
"./lib/locale/en/pagination.js": "./lib/locale/en/pagination.js",
|
|
76
|
+
"./lib/locale/en/password-field.js": "./lib/locale/en/password-field.js",
|
|
77
|
+
"./lib/locale/en/search-field.js": "./lib/locale/en/search-field.js",
|
|
78
|
+
"./lib/locale/en/shared.js": "./lib/locale/en/shared.js",
|
|
79
|
+
"./lib/locale/en/tree-select.js": "./lib/locale/en/tree-select.js",
|
|
80
|
+
"./lib/locale/ja/calendar.js": "./lib/locale/ja/calendar.js",
|
|
81
|
+
"./lib/locale/ja/color-dialog.js": "./lib/locale/ja/color-dialog.js",
|
|
82
|
+
"./lib/locale/ja/combo-box.js": "./lib/locale/ja/combo-box.js",
|
|
83
|
+
"./lib/locale/ja/dialog.js": "./lib/locale/ja/dialog.js",
|
|
84
|
+
"./lib/locale/ja/pagination.js": "./lib/locale/ja/pagination.js",
|
|
85
|
+
"./lib/locale/ja/password-field.js": "./lib/locale/ja/password-field.js",
|
|
86
|
+
"./lib/locale/ja/search-field.js": "./lib/locale/ja/search-field.js",
|
|
87
|
+
"./lib/locale/ja/shared.js": "./lib/locale/ja/shared.js",
|
|
88
|
+
"./lib/locale/ja/tree-select.js": "./lib/locale/ja/tree-select.js",
|
|
89
|
+
"./lib/locale/zh/calendar.js": "./lib/locale/zh/calendar.js",
|
|
90
|
+
"./lib/locale/zh/color-dialog.js": "./lib/locale/zh/color-dialog.js",
|
|
91
|
+
"./lib/locale/zh/combo-box.js": "./lib/locale/zh/combo-box.js",
|
|
92
|
+
"./lib/locale/zh/dialog.js": "./lib/locale/zh/dialog.js",
|
|
93
|
+
"./lib/locale/zh/pagination.js": "./lib/locale/zh/pagination.js",
|
|
94
|
+
"./lib/locale/zh/password-field.js": "./lib/locale/zh/password-field.js",
|
|
95
|
+
"./lib/locale/zh/search-field.js": "./lib/locale/zh/search-field.js",
|
|
96
|
+
"./lib/locale/zh/shared.js": "./lib/locale/zh/shared.js",
|
|
97
|
+
"./lib/locale/zh/tree-select.js": "./lib/locale/zh/tree-select.js",
|
|
98
|
+
"./lib/locale/zh-hant/calendar.js": "./lib/locale/zh-hant/calendar.js",
|
|
99
|
+
"./lib/locale/zh-hant/color-dialog.js": "./lib/locale/zh-hant/color-dialog.js",
|
|
100
|
+
"./lib/locale/zh-hant/combo-box.js": "./lib/locale/zh-hant/combo-box.js",
|
|
101
|
+
"./lib/locale/zh-hant/dialog.js": "./lib/locale/zh-hant/dialog.js",
|
|
102
|
+
"./lib/locale/zh-hant/pagination.js": "./lib/locale/zh-hant/pagination.js",
|
|
103
|
+
"./lib/locale/zh-hant/password-field.js": "./lib/locale/zh-hant/password-field.js",
|
|
104
|
+
"./lib/locale/zh-hant/search-field.js": "./lib/locale/zh-hant/search-field.js",
|
|
105
|
+
"./lib/locale/zh-hant/shared.js": "./lib/locale/zh-hant/shared.js",
|
|
106
|
+
"./lib/locale/zh-hant/tree-select.js": "./lib/locale/zh-hant/tree-select.js"
|
|
107
|
+
},
|
|
15
108
|
"scripts": {
|
|
16
109
|
"build": "tsc --sourceMap --declarationMap",
|
|
17
110
|
"build:prod": "tsc",
|
|
@@ -20,12 +113,15 @@
|
|
|
20
113
|
"test": "npm run build && mocha __test__/**/*.js --require esm"
|
|
21
114
|
},
|
|
22
115
|
"devDependencies": {
|
|
23
|
-
"chai": "4.3.4",
|
|
116
|
+
"chai": "^4.3.4",
|
|
24
117
|
"esm": "^3.2.25",
|
|
25
118
|
"mocha": "^8.4.0"
|
|
26
119
|
},
|
|
27
120
|
"publishConfig": {
|
|
28
121
|
"access": "public"
|
|
29
122
|
},
|
|
30
|
-
"
|
|
123
|
+
"dependencies": {
|
|
124
|
+
"tslib": "^2.3.1"
|
|
125
|
+
},
|
|
126
|
+
"gitHead": "20e555a28212760cc2657b27ca0c5f583c55c51d"
|
|
31
127
|
}
|