@coolon/i18n-resource-generator 2.0.10 → 2.0.12
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 +10 -0
- package/build/main/lib/arguments.class.d.ts +1 -0
- package/build/main/lib/arguments.class.js +7 -4
- package/build/main/lib/customTypeNode.class.js +22 -20
- package/build/main/lib/i18nNode.class.d.ts +2 -0
- package/build/main/lib/i18nNode.class.js +24 -1
- package/build/main/lib/textArrayNode.class.d.ts +2 -1
- package/build/main/lib/textArrayNode.class.js +2 -15
- package/build/main/lib/textNode.class.js +8 -3
- package/build/module/lib/arguments.class.d.ts +1 -0
- package/build/module/lib/arguments.class.js +7 -4
- package/build/module/lib/customTypeNode.class.js +22 -20
- package/build/module/lib/i18nNode.class.d.ts +2 -0
- package/build/module/lib/i18nNode.class.js +24 -1
- package/build/module/lib/textArrayNode.class.d.ts +2 -1
- package/build/module/lib/textArrayNode.class.js +2 -15
- package/build/module/lib/textNode.class.js +8 -3
- package/package.json +2 -2
- package/fixtures/config.json +0 -7
- package/fixtures/ui.alarms.en.yml +0 -108
- package/fixtures/ui.common.en.yml +0 -23
- package/fixtures/ui.date_time.en.yml +0 -94
- package/fixtures/ui.devices.en.yml +0 -288
- package/fixtures/ui.lux.en.yml +0 -44
- package/fixtures/ui.notification.en.yml +0 -238
- package/fixtures/ui.places.en.yml +0 -104
- package/fixtures/ui.reports.en.yml +0 -138
- package/fixtures/ui.scene.en.yml +0 -11
- package/fixtures/ui.schedule.en.yml +0 -7
- package/fixtures/ui.search.en.yml +0 -73
- package/fixtures/ui.validation.en.yml +0 -63
- package/fixtures/ui.zones.en.yml +0 -121
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@coolon/i18n-resource-generator",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.12",
|
|
4
4
|
"description": "Generates typescript classes from yml resource bundles using the icu message format",
|
|
5
5
|
"main": "build/main/index.js",
|
|
6
6
|
"typings": "build/main/index.d.ts",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"all": "run-s reset test cov:check doc:html",
|
|
40
40
|
"prepare-release": "run-s all version doc:publish",
|
|
41
41
|
"publish-release": " git push --follow-tags origin master && npm publish",
|
|
42
|
-
"test:fixtures": "node build/main/lib/bin/cli.js 'fixtures'
|
|
42
|
+
"test:fixtures": "node build/main/lib/bin/cli.js 'src/test/integration/fixtures' src/test/integration/gen"
|
|
43
43
|
},
|
|
44
44
|
"scripts-info": {
|
|
45
45
|
"info": "Display information about the package scripts",
|
package/fixtures/config.json
DELETED
|
@@ -1,108 +0,0 @@
|
|
|
1
|
-
# Files in the config/locales directory are used for internationalization
|
|
2
|
-
# and are automatically loaded by Rails. If you want to use locales other
|
|
3
|
-
# than English, add the necessary files in this directory.
|
|
4
|
-
#
|
|
5
|
-
# To use the locales, use `I18n.t`:
|
|
6
|
-
#
|
|
7
|
-
# I18n.t 'hello'
|
|
8
|
-
#
|
|
9
|
-
# In views, this is aliased to just `t`:
|
|
10
|
-
#
|
|
11
|
-
# <%= t('hello') %>
|
|
12
|
-
#
|
|
13
|
-
# To use a different locale, set it with `I18n.locale`:
|
|
14
|
-
#
|
|
15
|
-
# I18n.locale = :es
|
|
16
|
-
#
|
|
17
|
-
# This would use the information in config/locales/es.yml.
|
|
18
|
-
#
|
|
19
|
-
# To learn more, please read the Rails Internationalization guide
|
|
20
|
-
# available at http://guides.rubyonrails.org/i18n.html.
|
|
21
|
-
|
|
22
|
-
ui:
|
|
23
|
-
alarm:
|
|
24
|
-
category(Enum):
|
|
25
|
-
system:
|
|
26
|
-
label: 'System'
|
|
27
|
-
lighting_network:
|
|
28
|
-
label: 'Lighting Network'
|
|
29
|
-
facility_configuration:
|
|
30
|
-
label: 'Configuration'
|
|
31
|
-
|
|
32
|
-
state(Enum):
|
|
33
|
-
active:
|
|
34
|
-
label: 'Active'
|
|
35
|
-
cleared:
|
|
36
|
-
label: 'Cleared'
|
|
37
|
-
everything:
|
|
38
|
-
label: 'All'
|
|
39
|
-
|
|
40
|
-
severity(Enum):
|
|
41
|
-
critical:
|
|
42
|
-
label: 'Critical'
|
|
43
|
-
major:
|
|
44
|
-
label: 'Major'
|
|
45
|
-
minor:
|
|
46
|
-
label: 'Minor'
|
|
47
|
-
warn:
|
|
48
|
-
label: 'Warning'
|
|
49
|
-
|
|
50
|
-
badge:
|
|
51
|
-
tooltip: '{count, plural, =1 {1 active alarm} other {# active alarms}}. Click to view.'
|
|
52
|
-
codeAndDuration: '{code} raised {raisedAt}'
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
system(Enum):
|
|
56
|
-
end_point_configuration_missing:
|
|
57
|
-
label: 'Facility controller endpoint configuration undefined'
|
|
58
|
-
configuration_failure:
|
|
59
|
-
label: 'Configuration failure'
|
|
60
|
-
web_socket_configuration_missing:
|
|
61
|
-
label: 'Web socket configuration undefined'
|
|
62
|
-
web_socket_connection_failure:
|
|
63
|
-
label: 'Web socket connection failure'
|
|
64
|
-
invalid_device:
|
|
65
|
-
label: 'Invalid device definition detected'
|
|
66
|
-
invalid_gateway:
|
|
67
|
-
label: 'Invalid gateway definition detected'
|
|
68
|
-
invalid_area_state:
|
|
69
|
-
label: 'Invalid area state detected'
|
|
70
|
-
invalid_usage_record:
|
|
71
|
-
label: 'Invalid usage record detected'
|
|
72
|
-
invalid_alarm_event_record:
|
|
73
|
-
label: 'Invalid alarm event record detected'
|
|
74
|
-
invalid_device_event_record:
|
|
75
|
-
label: 'Invalid device event record detected'
|
|
76
|
-
invalid_zigbee_joining_session_record:
|
|
77
|
-
label: 'Invalid zigbee joining session record detected'
|
|
78
|
-
invalid_zigbee_network_map_record:
|
|
79
|
-
label: 'Invalid zigbee network map record detected'
|
|
80
|
-
illegal_device_event_type:
|
|
81
|
-
label: 'Illegal device event type'
|
|
82
|
-
orphaned_device_event:
|
|
83
|
-
label: 'Orphaned device event'
|
|
84
|
-
|
|
85
|
-
lighting_network(Enum):
|
|
86
|
-
no_response_from_gateway:
|
|
87
|
-
label: 'Gateway not responding'
|
|
88
|
-
gateway_unreachable:
|
|
89
|
-
label: 'Gateway offline'
|
|
90
|
-
unknown_gateway:
|
|
91
|
-
label: 'Unknown gateway'
|
|
92
|
-
gateway_returned_error:
|
|
93
|
-
label: 'Gateway returned error'
|
|
94
|
-
no_response:
|
|
95
|
-
label: 'No response'
|
|
96
|
-
no_matching_zigbee_device:
|
|
97
|
-
label: 'No matching zigbee device'
|
|
98
|
-
no_alarm_code_for_exception:
|
|
99
|
-
label: 'No alarm code for exception'
|
|
100
|
-
no_such_capability:
|
|
101
|
-
label: 'No such capability'
|
|
102
|
-
unknown_device:
|
|
103
|
-
label: 'Unknown device'
|
|
104
|
-
malformed_response_from_gateway:
|
|
105
|
-
label: 'Malformed response from gateway'
|
|
106
|
-
incompatible_device:
|
|
107
|
-
label: 'Incompatible device detected'
|
|
108
|
-
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
ui:
|
|
2
|
-
component:
|
|
3
|
-
form:
|
|
4
|
-
date_picker:
|
|
5
|
-
format: '%-d %b %Y'
|
|
6
|
-
date_range_picker:
|
|
7
|
-
format:
|
|
8
|
-
days: '%-d %b %Y'
|
|
9
|
-
weeks: '%-d %b %Y'
|
|
10
|
-
months: '%b %Y'
|
|
11
|
-
years: '%Y'
|
|
12
|
-
zone:
|
|
13
|
-
zone_navigator:
|
|
14
|
-
drop_down_crumbs: 'In %{crumbs}'
|
|
15
|
-
common:
|
|
16
|
-
labels:
|
|
17
|
-
all_zones: 'All Zones'
|
|
18
|
-
all_areas: 'All Rooms'
|
|
19
|
-
crumbs:
|
|
20
|
-
separator: '/'
|
|
21
|
-
components:
|
|
22
|
-
loading_message:
|
|
23
|
-
simple: 'Loading...'
|
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
date_time:
|
|
2
|
-
day_names:
|
|
3
|
-
- 'Sunday'
|
|
4
|
-
- 'Monday'
|
|
5
|
-
- 'Tuesday'
|
|
6
|
-
- 'Wednesday'
|
|
7
|
-
- 'Thursday'
|
|
8
|
-
- 'Friday'
|
|
9
|
-
- 'Saturday'
|
|
10
|
-
|
|
11
|
-
day_initials:
|
|
12
|
-
- 'S'
|
|
13
|
-
- 'M'
|
|
14
|
-
- 'T'
|
|
15
|
-
- 'W'
|
|
16
|
-
- 'T'
|
|
17
|
-
- 'F'
|
|
18
|
-
- 'S'
|
|
19
|
-
|
|
20
|
-
date_range(Enum):
|
|
21
|
-
today:
|
|
22
|
-
label: 'Today'
|
|
23
|
-
this_week:
|
|
24
|
-
label: 'This Week'
|
|
25
|
-
last_week:
|
|
26
|
-
label: 'Last Week'
|
|
27
|
-
last_two_weeks:
|
|
28
|
-
label: 'Last 2 Weeks'
|
|
29
|
-
last_six_weeks:
|
|
30
|
-
label: 'Last 6 Weeks'
|
|
31
|
-
this_month:
|
|
32
|
-
label: 'This Month'
|
|
33
|
-
last_month:
|
|
34
|
-
label: 'Last Month'
|
|
35
|
-
last_three_months:
|
|
36
|
-
label: 'Last 3 Months'
|
|
37
|
-
last_six_months:
|
|
38
|
-
label: 'Last 6 Months'
|
|
39
|
-
this_year:
|
|
40
|
-
label: 'This Year'
|
|
41
|
-
last_year:
|
|
42
|
-
label: 'Last Year'
|
|
43
|
-
last_two_years:
|
|
44
|
-
label: 'Last 2 Years'
|
|
45
|
-
last_five_years:
|
|
46
|
-
label: 'Last 5 Years'
|
|
47
|
-
custom:
|
|
48
|
-
label: 'Custom'
|
|
49
|
-
|
|
50
|
-
time_period(Enum):
|
|
51
|
-
millisecond:
|
|
52
|
-
label: 'Milli Second'
|
|
53
|
-
date_format: '%-d %b %Y'
|
|
54
|
-
format: '%{start} – %{end}'
|
|
55
|
-
humanize: '{amount, number} milliseconds'
|
|
56
|
-
second:
|
|
57
|
-
label: 'Second'
|
|
58
|
-
date_format: '%-d %b %Y'
|
|
59
|
-
format: '%{start} – %{end}'
|
|
60
|
-
humanize: '{amount, number} seconds'
|
|
61
|
-
minute:
|
|
62
|
-
label: 'Minute'
|
|
63
|
-
date_format: '%-d %b %Y'
|
|
64
|
-
format: '%{start} – %{end}'
|
|
65
|
-
humanize: '{amount, number} minutes'
|
|
66
|
-
hour:
|
|
67
|
-
label: 'Hour'
|
|
68
|
-
date_format: '%-d %b %Y'
|
|
69
|
-
format: '%{start} – %{end}'
|
|
70
|
-
humanize: '{amount, number} hours'
|
|
71
|
-
day:
|
|
72
|
-
label: 'Day'
|
|
73
|
-
date_format: '%-d %b %Y'
|
|
74
|
-
format: '%{start} – %{end}'
|
|
75
|
-
humanize: '{amount, number} days'
|
|
76
|
-
week:
|
|
77
|
-
label: 'Week'
|
|
78
|
-
date_format: '%d %b %Y'
|
|
79
|
-
format: '%{start} – %{end}'
|
|
80
|
-
humanize: '{amount, number} weeks'
|
|
81
|
-
month:
|
|
82
|
-
label: 'Month'
|
|
83
|
-
date_format: '%b %Y'
|
|
84
|
-
format: '%{start} – %{end}'
|
|
85
|
-
humanize: '{amount, number} months'
|
|
86
|
-
year:
|
|
87
|
-
label: 'Year'
|
|
88
|
-
date_format: '%Y'
|
|
89
|
-
format: '%{start} – %{end}'
|
|
90
|
-
humanize: '{amount, number} years'
|
|
91
|
-
|
|
92
|
-
time_of_day:
|
|
93
|
-
am: "{time} am"
|
|
94
|
-
pm: "{time} pm"
|
|
@@ -1,288 +0,0 @@
|
|
|
1
|
-
# Files in the config/locales directory are used for internationalization
|
|
2
|
-
# and are automatically loaded by Rails. If you want to use locales other
|
|
3
|
-
# than English, add the necessary files in this directory.
|
|
4
|
-
#
|
|
5
|
-
# To use the locales, use `I18n.t`:
|
|
6
|
-
#
|
|
7
|
-
# I18n.t 'hello'
|
|
8
|
-
#
|
|
9
|
-
# In views, this is aliased to just `t`:
|
|
10
|
-
#
|
|
11
|
-
# <%= t('hello') %>
|
|
12
|
-
#
|
|
13
|
-
# To use a different locale, set it with `I18n.locale`:
|
|
14
|
-
#
|
|
15
|
-
# I18n.locale = :es
|
|
16
|
-
#
|
|
17
|
-
# This would use the information in config/locales/es.yml.
|
|
18
|
-
#
|
|
19
|
-
# To learn more, please read the Rails Internationalization guide
|
|
20
|
-
# available at http://guides.rubyonrails.org/i18n.html.
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
# GRR: http://stackoverflow.com/questions/9642901/how-to-change-case-of-interpolated-variables-in-rails-locale-file
|
|
24
|
-
|
|
25
|
-
ui:
|
|
26
|
-
device:
|
|
27
|
-
attributes:
|
|
28
|
-
power_source(Enum): # attributes.powerSource
|
|
29
|
-
unknown:
|
|
30
|
-
label: ''
|
|
31
|
-
mains_single_phase:
|
|
32
|
-
label: 'Mains Single Phase'
|
|
33
|
-
mains_three_phase:
|
|
34
|
-
label: 'Mains 3 Phase'
|
|
35
|
-
battery:
|
|
36
|
-
label: 'Battery'
|
|
37
|
-
dc_source:
|
|
38
|
-
label: 'DC Source'
|
|
39
|
-
emergency_mains_constantly_powered:
|
|
40
|
-
label: 'Emergency Mains Constantly Powered'
|
|
41
|
-
emergency_mains_transfer_switch:
|
|
42
|
-
label: 'Emergency Mains Transfer Switch'
|
|
43
|
-
|
|
44
|
-
capabilities(Enum):
|
|
45
|
-
light:
|
|
46
|
-
label: 'Light'
|
|
47
|
-
dimmable:
|
|
48
|
-
label: 'Dimmable'
|
|
49
|
-
switch:
|
|
50
|
-
label: 'Switch'
|
|
51
|
-
dimmer:
|
|
52
|
-
label: 'Dimmer'
|
|
53
|
-
occupancy:
|
|
54
|
-
label: 'Occupancy Detector'
|
|
55
|
-
power_meter:
|
|
56
|
-
label: 'Power Meter'
|
|
57
|
-
illuminance:
|
|
58
|
-
label: 'Light Meter'
|
|
59
|
-
|
|
60
|
-
type(Enum):
|
|
61
|
-
light:
|
|
62
|
-
label: 'Light'
|
|
63
|
-
label_with_state: '{state,select,enabled {Light} other {Light (Disabled)}}'
|
|
64
|
-
icon: 'devices:light'
|
|
65
|
-
count: '{count,plural, =1 {1 light} other {# lights}}'
|
|
66
|
-
dimmable_light:
|
|
67
|
-
label: 'Dimmable Light'
|
|
68
|
-
label_with_state: '{state, select, enabled {Dimmable Light} other {Dimmable Light (Disabled)}}'
|
|
69
|
-
icon: 'devices:dimmable_light'
|
|
70
|
-
count: '{count, plural, =1 {1 dimmable light} other {# dimmable lights}}'
|
|
71
|
-
switch:
|
|
72
|
-
label: 'Switch'
|
|
73
|
-
label_with_state: '{state, select, enabled {Switch} other {Switch (Disabled)}}'
|
|
74
|
-
icon: 'devices:switch'
|
|
75
|
-
count: '{count, plural, =1 {1 switch} other {# switches}}'
|
|
76
|
-
switch_dimmer:
|
|
77
|
-
label: 'Switch + Dimmer'
|
|
78
|
-
label_with_state: '{state, select, enabled {Switch + Dimmer} other {Switch + Dimmer (Disabled)}}'
|
|
79
|
-
icon: 'devices:switch_dimmer'
|
|
80
|
-
count: '{count, plural, =1 {1 switch dimmer} other {# switch dimmers}}'
|
|
81
|
-
dimmer:
|
|
82
|
-
label: 'Dimmer'
|
|
83
|
-
label_with_state: '{state, select, enabled {Dimmer} other {Dimmer (Disabled)}}'
|
|
84
|
-
icon: 'devices:dimmer'
|
|
85
|
-
count: '{count, plural, =1 {1 dimmer} other {# dimmers}}'
|
|
86
|
-
occupancy_sensor:
|
|
87
|
-
label: 'Occupancy Detector'
|
|
88
|
-
label_with_state: '{state, select, enabled {Occupancy Detector} other {Occupancy Detector (Disabled)}}'
|
|
89
|
-
icon: 'devices:occupancy_detector'
|
|
90
|
-
count: '{count, plural, =1 {1 occupancy detector} other {# occupancy detectors}}'
|
|
91
|
-
power_meter:
|
|
92
|
-
label: 'Power Meter'
|
|
93
|
-
label_with_state: '{state, select, enabled {Power Meter} other {Power Meter (Disabled)}}'
|
|
94
|
-
icon: 'devices:power_meter'
|
|
95
|
-
count: '{count, plural, =1 {1 power meter} other {# power meters}}'
|
|
96
|
-
light_meter:
|
|
97
|
-
label: 'Light Meter'
|
|
98
|
-
label_with_state: '{state, select, enabled {Light Meter} other {Light Meter (Disabled)}}'
|
|
99
|
-
icon: 'devices:light_meter'
|
|
100
|
-
count: '{count, plural, =1 {1 light meter} other {# light meters}}'
|
|
101
|
-
temperature_sensor:
|
|
102
|
-
label: 'Temperature Sensor'
|
|
103
|
-
label_with_state: '{state, select, enabled {Temperature Sensor} other {Temperature Sensor (Disabled)}}'
|
|
104
|
-
icon: 'devices:temperature_sensor'
|
|
105
|
-
count: '{count, plural, =1 {1 temperature sensor} other {# temperature sensors}}'
|
|
106
|
-
relative_humidity_sensor:
|
|
107
|
-
label: 'Relative Humidity Sensor'
|
|
108
|
-
label_with_state: '{state, select, enabled {Relative Humidity Sensor} other {Relative Humidity Sensor (Disabled)}}'
|
|
109
|
-
icon: 'devices:relative_humidity_sensor'
|
|
110
|
-
count: '{count, plural, =1 {1 relative humidity sensor} other {# relative humidity sensors}}'
|
|
111
|
-
|
|
112
|
-
type_selector(Enum):
|
|
113
|
-
light:
|
|
114
|
-
label: 'Lighting'
|
|
115
|
-
icon: 'devices:light'
|
|
116
|
-
dimmable_light:
|
|
117
|
-
label: 'Lighting'
|
|
118
|
-
icon: 'devices:dimmable_light'
|
|
119
|
-
switch:
|
|
120
|
-
label: 'Manual Control'
|
|
121
|
-
icon: 'devices:switch'
|
|
122
|
-
switch_dimmer:
|
|
123
|
-
label: 'Manual Control'
|
|
124
|
-
icon: 'devices:switch_dimmer'
|
|
125
|
-
dimmer:
|
|
126
|
-
label: 'Manual Control'
|
|
127
|
-
icon: 'devices:dimmer'
|
|
128
|
-
occupancy_sensor:
|
|
129
|
-
label: 'Occupancy Detection'
|
|
130
|
-
icon: 'devices:occupancy_detector'
|
|
131
|
-
power_meter:
|
|
132
|
-
label: 'Power Measurement'
|
|
133
|
-
icon: 'devices:power_meter'
|
|
134
|
-
light_meter:
|
|
135
|
-
label: 'Light Measurement'
|
|
136
|
-
icon: 'devices:light_meter'
|
|
137
|
-
temperature_sensor:
|
|
138
|
-
label: 'Temperature Measurement'
|
|
139
|
-
icon: 'devices:temperature_sensor'
|
|
140
|
-
relative_humidity_sensor:
|
|
141
|
-
label: 'Humidity Measurement'
|
|
142
|
-
icon: 'devices:relative_humidity_sensor'
|
|
143
|
-
|
|
144
|
-
settings_editor(Enum):
|
|
145
|
-
light:
|
|
146
|
-
label: 'Enable Lighting'
|
|
147
|
-
icon: 'devices:light'
|
|
148
|
-
dimmable_light:
|
|
149
|
-
label: 'Enable Lighting'
|
|
150
|
-
icon: 'devices:dimmable_light'
|
|
151
|
-
switch:
|
|
152
|
-
label: 'Enable Manual Control'
|
|
153
|
-
icon: 'devices:switch'
|
|
154
|
-
switch_dimmer:
|
|
155
|
-
label: 'Enable Manual Control'
|
|
156
|
-
icon: 'devices:switch_dimmer'
|
|
157
|
-
dimmer:
|
|
158
|
-
label: 'Enable Manual Control'
|
|
159
|
-
icon: 'devices:dimmer'
|
|
160
|
-
occupancy_sensor:
|
|
161
|
-
label: 'Enable Occupancy Detection'
|
|
162
|
-
icon: 'devices:occupancy_detector'
|
|
163
|
-
power_meter:
|
|
164
|
-
label: 'Enable Power Measurement'
|
|
165
|
-
icon: 'devices:power_meter'
|
|
166
|
-
light_meter:
|
|
167
|
-
label: 'Enable Light Measurement'
|
|
168
|
-
icon: 'devices:light_meter'
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
category(Enum):
|
|
172
|
-
all:
|
|
173
|
-
icon:
|
|
174
|
-
label: 'All'
|
|
175
|
-
tooltip:
|
|
176
|
-
battery:
|
|
177
|
-
icon: 'devices:battery_category_filter'
|
|
178
|
-
label:
|
|
179
|
-
tooltip: 'Battery powered devices'
|
|
180
|
-
light:
|
|
181
|
-
label:
|
|
182
|
-
tooltip: 'Lights'
|
|
183
|
-
icon: 'devices:light'
|
|
184
|
-
manual_control:
|
|
185
|
-
label:
|
|
186
|
-
tooltip: 'Switches & Dimmers'
|
|
187
|
-
icon: 'devices:manual_control'
|
|
188
|
-
occupancy_sensor:
|
|
189
|
-
label:
|
|
190
|
-
tooltip: 'Occupancy Sensors'
|
|
191
|
-
icon: 'devices:occupancy_detector'
|
|
192
|
-
power_meter:
|
|
193
|
-
label:
|
|
194
|
-
tooltip: 'Power Meters'
|
|
195
|
-
icon: 'devices:power_meter'
|
|
196
|
-
light_meter:
|
|
197
|
-
label:
|
|
198
|
-
tooltip: 'Light Meters'
|
|
199
|
-
icon: 'devices:light_meter'
|
|
200
|
-
temperature_sensor:
|
|
201
|
-
label:
|
|
202
|
-
tooltip: 'Temperature Sensors'
|
|
203
|
-
icon: 'devices:temperature_sensor'
|
|
204
|
-
humidity_sensor:
|
|
205
|
-
label:
|
|
206
|
-
tooltip: 'Humidity Sensors'
|
|
207
|
-
icon: 'devices:relative_humidity_sensor'
|
|
208
|
-
|
|
209
|
-
area_filter(Enum):
|
|
210
|
-
all:
|
|
211
|
-
label: 'All'
|
|
212
|
-
tooltip:
|
|
213
|
-
assigned:
|
|
214
|
-
label: 'Assigned'
|
|
215
|
-
tooltip: 'Show devices assigned to an area'
|
|
216
|
-
unassigned:
|
|
217
|
-
label: 'Unassigned'
|
|
218
|
-
tooltip: 'Show devices not assigned to an area'
|
|
219
|
-
|
|
220
|
-
interactive_search:
|
|
221
|
-
category_hint: >
|
|
222
|
-
{category, select,
|
|
223
|
-
light { {count, plural, =0 {There are no unassigned lights in the system} other {There are # lights to choose from}} }
|
|
224
|
-
manual_control {{count, plural, =0 {There are no unassigned switches or dimmers in the system} other {There are # devices to choose from}}}
|
|
225
|
-
occupancy_sensor {{count, plural, =0 {There are no unassigned occupancy sensors in the system} other {There are # occupancy sensors to choose from}}}
|
|
226
|
-
light_meter {{count, plural, =0 {There are no unassigned light meters in the system} other {There are # light meters to choose from}}}
|
|
227
|
-
other {}
|
|
228
|
-
}
|
|
229
|
-
# scope_hint: "{count, plural, =0 {There are none of these} other {# available}}"
|
|
230
|
-
# >
|
|
231
|
-
# {scope, select,
|
|
232
|
-
# assigned {{count, plural, =0 {with none assigned} other {with # assigned}}}
|
|
233
|
-
# unassigned {{count, plural, =0 {with none unassigned} other {with # unassigned}}}
|
|
234
|
-
# other { }
|
|
235
|
-
# }
|
|
236
|
-
|
|
237
|
-
no_matching_device_error: >
|
|
238
|
-
{category, select,
|
|
239
|
-
light {{scope, select,
|
|
240
|
-
assigned { There are no assigned lights in the system }
|
|
241
|
-
unassigned { There are no unassigned lights in the system }
|
|
242
|
-
other {There are no lights in the system} }}
|
|
243
|
-
manual_control {{scope, select,
|
|
244
|
-
assigned { There are no assigned switches or dimmers in the system }
|
|
245
|
-
unassigned { There are no unassigned switches or dimmers in the system }
|
|
246
|
-
other {There are no switches or dimmers in the system} }}
|
|
247
|
-
occupancy_sensor {{scope, select,
|
|
248
|
-
assigned { There are no assigned occupancy sensors in the system }
|
|
249
|
-
unassigned { There are no unassigned occupancy sensors in the system }
|
|
250
|
-
other {There are no occupancy sensors in the system} }}
|
|
251
|
-
light_meter {{scope, select,
|
|
252
|
-
assigned { There are no assigned light meters in the system }
|
|
253
|
-
unassigned { There are no unassigned light meters in the system }
|
|
254
|
-
other {There are no light meters in the system} }}
|
|
255
|
-
other {}
|
|
256
|
-
}
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
device_list:
|
|
260
|
-
power_source:
|
|
261
|
-
battery:
|
|
262
|
-
tooltip: "Battery Powered ({level, number}% / {volts, number}V)"
|
|
263
|
-
tooltip_unknown: "Battery Powered - No status available"
|
|
264
|
-
tooltip_low: "Battery Powered - Low Battery!!"
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
joining:
|
|
268
|
-
status(Enum):
|
|
269
|
-
reading_endpoint_list:
|
|
270
|
-
label: "Finding Endpoints"
|
|
271
|
-
reading_endpoint_details:
|
|
272
|
-
label: "Reading Endpoints"
|
|
273
|
-
reading_attributes:
|
|
274
|
-
label: "Reading Attributes"
|
|
275
|
-
announced:
|
|
276
|
-
label: 'Discovered'
|
|
277
|
-
configuring:
|
|
278
|
-
label: 'Configuring'
|
|
279
|
-
joined:
|
|
280
|
-
label: 'Joined'
|
|
281
|
-
unsupported:
|
|
282
|
-
label: "Unsupported device"
|
|
283
|
-
existing:
|
|
284
|
-
label: "Already added"
|
|
285
|
-
aborted:
|
|
286
|
-
label: "Unsupported device"
|
|
287
|
-
error:
|
|
288
|
-
label: "Error"
|
package/fixtures/ui.lux.en.yml
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
# Files in the config/locales directory are used for internationalization
|
|
2
|
-
# and are automatically loaded by Rails. If you want to use locales other
|
|
3
|
-
# than English, add the necessary files in this directory.
|
|
4
|
-
#
|
|
5
|
-
# To use the locales, use `I18n.t`:
|
|
6
|
-
#
|
|
7
|
-
# I18n.t 'hello'
|
|
8
|
-
#
|
|
9
|
-
# In views, this is aliased to just `t`:
|
|
10
|
-
#
|
|
11
|
-
# <%= t('hello') %>
|
|
12
|
-
#
|
|
13
|
-
# To use a different locale, set it with `I18n.locale`:
|
|
14
|
-
#
|
|
15
|
-
# I18n.locale = :es
|
|
16
|
-
#
|
|
17
|
-
# This would use the information in config/locales/es.yml.
|
|
18
|
-
#
|
|
19
|
-
# To learn more, please read the Rails Internationalization guide
|
|
20
|
-
# available at http://guides.rubyonrails.org/i18n.html.
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
# GRR: http://stackoverflow.com/questions/9642901/how-to-change-case-of-interpolated-variables-in-rails-locale-file
|
|
24
|
-
|
|
25
|
-
ui:
|
|
26
|
-
lux:
|
|
27
|
-
standard_levels:
|
|
28
|
-
# - {value: 40, description: 'Corridors, cable tunnels, indoor storage tanks, walkways'}
|
|
29
|
-
# - {value: 80, description: 'Staff change rooms, live storage of bulky material, dead storage of materials needing care, locker rooms, loading bays'}
|
|
30
|
-
# - {value: 160, description: 'Waiting rooms, staff canteens, rough checking of stock, rough bench and machine work, entrance halls, general fabrication of structural steel, casting concrete, automated process monitoring, turbine halls'}
|
|
31
|
-
# - {value: 240, description: 'School chalkboards and charts, medium woodworking, food preparation, counters for transactions'}
|
|
32
|
-
# - {value: 320, description: 'Routine office tasks, e.g. reading, writing, typing, enquiry desks'}
|
|
33
|
-
# - {value: 400, description: 'Inspection of medium work, fine woodwork, car assembly'}
|
|
34
|
-
# - {value: 600, description: 'Drawing boards, most inspection tasks, proofreading, fine machine work, fine painting and finishing, color matching'}
|
|
35
|
-
# - {value: 800, description: 'Fine inspection, paint retouching, fine manufacturer, grading of dark materials, color matching of dyes'}
|
|
36
|
-
# - {value: 1200, description: 'Graphic arts inspection, hand tailoring, fine die sinking, inspection of dark goods, extra fine bench work'}
|
|
37
|
-
# - {value: 1600, description: 'Finished fabric inspection, assembly of minute mechanisms, jewellery and watchmaking'}
|
|
38
|
-
|
|
39
|
-
format: >
|
|
40
|
-
{level_units, select,
|
|
41
|
-
percent {{level, number, percent}}
|
|
42
|
-
lux {{level, number} lux}
|
|
43
|
-
other {}
|
|
44
|
-
}
|