@coolon/i18n-resource-generator 2.0.10 → 2.0.11
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 +5 -0
- package/build/main/lib/customTypeNode.class.js +2 -10
- 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/module/lib/customTypeNode.class.js +2 -10
- 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/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
|
@@ -1,138 +0,0 @@
|
|
|
1
|
-
reports:
|
|
2
|
-
|
|
3
|
-
energy_usage:
|
|
4
|
-
|
|
5
|
-
chart_title:
|
|
6
|
-
name: '{reportType} for {areaName}'
|
|
7
|
-
all_zones: 'All Zones'
|
|
8
|
-
crumbs: 'In {crumbs}'
|
|
9
|
-
date_range: '{dayCount, plural, =1 {{start, date, full}} other {{start, date, full} – {end, date, full}}}'
|
|
10
|
-
|
|
11
|
-
report_type(Enum):
|
|
12
|
-
energy_usage:
|
|
13
|
-
value_prefix: ''
|
|
14
|
-
units: 'kWh'
|
|
15
|
-
title: 'Energy Usage'
|
|
16
|
-
energy_cost:
|
|
17
|
-
units: 'AUD'
|
|
18
|
-
value_prefix: '$'
|
|
19
|
-
title: 'Cost'
|
|
20
|
-
co2_emissions:
|
|
21
|
-
value_prefix: ''
|
|
22
|
-
units: 'kg'
|
|
23
|
-
title: 'CO2 Emissions'
|
|
24
|
-
|
|
25
|
-
chart:
|
|
26
|
-
resolution(Enum):
|
|
27
|
-
quarter_hour:
|
|
28
|
-
label: "15 Minutes"
|
|
29
|
-
date_range_label: For
|
|
30
|
-
hour:
|
|
31
|
-
label: "Hour"
|
|
32
|
-
date_range_label: For
|
|
33
|
-
day:
|
|
34
|
-
label: "Day"
|
|
35
|
-
date_range_label: For
|
|
36
|
-
week:
|
|
37
|
-
label: "Week"
|
|
38
|
-
date_range_label: For the weeks
|
|
39
|
-
month:
|
|
40
|
-
label: "Month"
|
|
41
|
-
date_range_label: For the months
|
|
42
|
-
|
|
43
|
-
compare_to(Enum):
|
|
44
|
-
daylight_harvesting_savings:
|
|
45
|
-
name: "Daylight Harvesting Savings"
|
|
46
|
-
occupancy_savings:
|
|
47
|
-
name: "Occupancy Savings"
|
|
48
|
-
previous_system_usage:
|
|
49
|
-
name: "Previous System Usage"
|
|
50
|
-
|
|
51
|
-
compare_to_custom:
|
|
52
|
-
same_period_last_year:
|
|
53
|
-
name: 'Same {period, select, week {Week} month {Month} other {Period}} Previous Year'
|
|
54
|
-
weekly_average:
|
|
55
|
-
name: '{period, select, over_twelve_weeks {Weekly Average (Over 12 Weeks)} other {Weekly Average} }'
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
series:
|
|
59
|
-
energy_usage:
|
|
60
|
-
name: "Energy Usage"
|
|
61
|
-
occupancy_savings:
|
|
62
|
-
name: "Occupancy Savings"
|
|
63
|
-
daylight_harvesting_savings:
|
|
64
|
-
name: "Daylight Harvesting Savings"
|
|
65
|
-
previous_system_usage:
|
|
66
|
-
name: "Previous System"
|
|
67
|
-
weekly_average:
|
|
68
|
-
name: '{period, select, over_twelve_weeks {Weekly Average (Over 12 Weeks)} other {Weekly Average} }'
|
|
69
|
-
same_period_last_year:
|
|
70
|
-
name: 'Same {period, select, week {Week} month {Month} other {Period}} Previous Year'
|
|
71
|
-
|
|
72
|
-
temporal:
|
|
73
|
-
resolution(Enum):
|
|
74
|
-
day:
|
|
75
|
-
label: "Day"
|
|
76
|
-
date_range_label: 'For'
|
|
77
|
-
y_axis_title: 'Hour of Day'
|
|
78
|
-
y_axis_label_format: "'{value}':00"
|
|
79
|
-
color_axis_format: "{valuePrefix}'{value}' {units}"
|
|
80
|
-
|
|
81
|
-
week:
|
|
82
|
-
label: "Week"
|
|
83
|
-
date_range_label: 'For'
|
|
84
|
-
y_axis_title: 'Day of Week'
|
|
85
|
-
y_axis_label_format: "'{value}'"
|
|
86
|
-
color_axis_format: "{valuePrefix}'{value}' {units}"
|
|
87
|
-
|
|
88
|
-
month:
|
|
89
|
-
label: "Month"
|
|
90
|
-
date_range_label: 'For'
|
|
91
|
-
y_axis_title: 'Day of Month'
|
|
92
|
-
y_axis_label_format: "'{value}'"
|
|
93
|
-
color_axis_format: "{valuePrefix}'{value}' {units}"
|
|
94
|
-
|
|
95
|
-
year:
|
|
96
|
-
label: "Year"
|
|
97
|
-
date_range_label: 'For'
|
|
98
|
-
y_axis_title: 'Month'
|
|
99
|
-
y_axis_label_format: "'{value}'"
|
|
100
|
-
color_axis_format: "{valuePrefix}'{value}' {units}"
|
|
101
|
-
|
|
102
|
-
series:
|
|
103
|
-
heat_map:
|
|
104
|
-
tooltip_header_format: "{report_title} '{point.key}'<br/>"
|
|
105
|
-
resolution(Enum):
|
|
106
|
-
day:
|
|
107
|
-
point_format: "'{point.category}' '{point.y:.0f}':00: <b>'{point.value}'</b>"
|
|
108
|
-
week:
|
|
109
|
-
point_format: "'{point.category}' '{point.key}' <b>'{point.value}'</b>"
|
|
110
|
-
month:
|
|
111
|
-
point_format: "'{point.category}' '{point.key}' <b>'{point.value}'</b>"
|
|
112
|
-
year:
|
|
113
|
-
point_format: "'{point.category}' '{point.key}' <b>'{point.value}'</b>"
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
metrics:
|
|
117
|
-
usage:
|
|
118
|
-
name: "Used"
|
|
119
|
-
total:
|
|
120
|
-
name: 'Total'
|
|
121
|
-
peak_fifteen_minutes:
|
|
122
|
-
name: 'Peak 15 Min'
|
|
123
|
-
attributes:
|
|
124
|
-
date_time:
|
|
125
|
-
name: 'Occurred On'
|
|
126
|
-
value_format: '%e %b %H:%M'
|
|
127
|
-
power:
|
|
128
|
-
name: 'Peak Power'
|
|
129
|
-
daily_average:
|
|
130
|
-
name: 'Daily Average'
|
|
131
|
-
savings:
|
|
132
|
-
name: "Saved"
|
|
133
|
-
daylight_harvesting:
|
|
134
|
-
name: 'Daylight Harvest'
|
|
135
|
-
occupancy:
|
|
136
|
-
name: 'Occupancy'
|
|
137
|
-
previous_system:
|
|
138
|
-
name: 'Previous System'
|
package/fixtures/ui.scene.en.yml
DELETED
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
search:
|
|
2
|
-
|
|
3
|
-
alerts(Alert[]):
|
|
4
|
-
|
|
5
|
-
session_timeout:
|
|
6
|
-
content:
|
|
7
|
-
- "Your session has timed out. Feel free to start another one."
|
|
8
|
-
ok: "Ok"
|
|
9
|
-
|
|
10
|
-
session_disappeared:
|
|
11
|
-
content:
|
|
12
|
-
- "Yikes, it seems our backend search monkeys have thrown in the towel and walked off the job."
|
|
13
|
-
- "We're as surprised about this as you and with great shame and loathing suggest reloading page."
|
|
14
|
-
ok: "Ok, got it"
|
|
15
|
-
|
|
16
|
-
session_already_exists:
|
|
17
|
-
content:
|
|
18
|
-
- "Bugger, it seems someone else is already performing a search and have used up all the searchy bits."
|
|
19
|
-
- "We'll need to wait until they're done before trying again."
|
|
20
|
-
ok: "Ok, got it"
|
|
21
|
-
|
|
22
|
-
devices_already_identifying:
|
|
23
|
-
content:
|
|
24
|
-
- "Bugger, it seems someone else has a device in an identifying state."
|
|
25
|
-
- "We'll need to wait until they're done before trying again."
|
|
26
|
-
ok: "Ok, got it"
|
|
27
|
-
|
|
28
|
-
unexpected_race_condition:
|
|
29
|
-
content:
|
|
30
|
-
- "Hmm, we've had an unexpected error occur. It's not you, it's us. You've found a bug."
|
|
31
|
-
ok: "Ok, sucks to be me"
|
|
32
|
-
|
|
33
|
-
unexpected_validation_error:
|
|
34
|
-
content:
|
|
35
|
-
- "Hmm, we've had an unexpected error occur. It's not you, it's us. You've found a bug."
|
|
36
|
-
ok: "Ok, sucks to be me"
|
|
37
|
-
|
|
38
|
-
device_in_use:
|
|
39
|
-
content:
|
|
40
|
-
- "Bugger, it seems someone else is already performing a with one of the devices so we can't use it."
|
|
41
|
-
- "We'll need to wait until they're done before trying again."
|
|
42
|
-
ok: "Ok, got it"
|
|
43
|
-
|
|
44
|
-
switch_search_in_progress:
|
|
45
|
-
content:
|
|
46
|
-
- "Bugger, it seems someone else is already searching for switches and have used up all the searchy bits."
|
|
47
|
-
- "We'll need to wait until they're done before trying again."
|
|
48
|
-
ok: "Ok, got it"
|
|
49
|
-
|
|
50
|
-
light_failed_to_identify_on_first_step:
|
|
51
|
-
content:
|
|
52
|
-
- "I appears the light your looking at was not included in the search."
|
|
53
|
-
ok: "Ok, got it"
|
|
54
|
-
|
|
55
|
-
light_not_in_search_scope:
|
|
56
|
-
content:
|
|
57
|
-
- "I appears the light your looking at was not included in the search."
|
|
58
|
-
ok: "Ok, got it"
|
|
59
|
-
|
|
60
|
-
light_not_in_search_scope_or_unreachable:
|
|
61
|
-
content:
|
|
62
|
-
- "I looks like the light is one of the unresponsive devices or was not included in the search."
|
|
63
|
-
- "You may want to check the the current alarms any information about the unresponsive devices."
|
|
64
|
-
ok: "Ok, got it"
|
|
65
|
-
|
|
66
|
-
lights_in_search_are_all_unreachable:
|
|
67
|
-
content:
|
|
68
|
-
- "None of the lights in the search are responding."
|
|
69
|
-
- "This is likely due to an issue with the gateways themselves or the network they're using."
|
|
70
|
-
- "You may want to check the the current alarms any information about the unresponsive devices."
|
|
71
|
-
ok: "Ok, got it"
|
|
72
|
-
|
|
73
|
-
|
|
@@ -1,63 +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
|
-
|
|
26
|
-
validation:
|
|
27
|
-
area_calibration_session:
|
|
28
|
-
light_sensor:
|
|
29
|
-
blank: "You need to select a light sensor to use"
|
|
30
|
-
|
|
31
|
-
add_gateways:
|
|
32
|
-
cidr_range:
|
|
33
|
-
blank: "You'll need give us CIDR address range or IP/netmask"
|
|
34
|
-
invalid: "Hmm, this doesn't appear to be a valid IP4 or IP6 address range or IP/netmask"
|
|
35
|
-
range_too_big: "This range contains more than 255 addresses. Please choose one that has 255 or less"
|
|
36
|
-
gateway_address:
|
|
37
|
-
blank: "You'll need give us an IP address (you can use IPv4 or IPv6)"
|
|
38
|
-
invalid: "Hmm, this doesn't appear to be a valid IP4 or IP6 address"
|
|
39
|
-
commission_zigbee_gatway:
|
|
40
|
-
networkChannel:
|
|
41
|
-
blank: "Please select a channel to use or select Auto if you're unsure"
|
|
42
|
-
|
|
43
|
-
control_panel_login:
|
|
44
|
-
areaId:
|
|
45
|
-
blank: "You'll need to select a zone for this device to control"
|
|
46
|
-
location:
|
|
47
|
-
blank: "You'll need to enter a location for this device. e.g. Back door"
|
|
48
|
-
authUsername:
|
|
49
|
-
blank: "You'll need to give us a username"
|
|
50
|
-
authPassword:
|
|
51
|
-
blank: "You'll need to give us a password"
|
|
52
|
-
invalidUsernameOrPassword: "Invalid username or password"
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
device:
|
|
56
|
-
nominal_power_rating:
|
|
57
|
-
negative: "The nominal power rating can't be a negative number"
|
|
58
|
-
|
|
59
|
-
device_configuration:
|
|
60
|
-
area:
|
|
61
|
-
missing: "Please specify a room"
|
|
62
|
-
|
|
63
|
-
|
package/fixtures/ui.zones.en.yml
DELETED
|
@@ -1,121 +0,0 @@
|
|
|
1
|
-
ui:
|
|
2
|
-
zones:
|
|
3
|
-
calibrate:
|
|
4
|
-
introduction_step:
|
|
5
|
-
label: "Introduction"
|
|
6
|
-
|
|
7
|
-
light_sensor_step:
|
|
8
|
-
label: "Light Sensors"
|
|
9
|
-
images(Enum):
|
|
10
|
-
offices:
|
|
11
|
-
label: "Offices and work areas"
|
|
12
|
-
image_url: "assets/images/calibration/sensor/office.svg"
|
|
13
|
-
thoroughfares:
|
|
14
|
-
label: "Walkways and thoroughfares"
|
|
15
|
-
image_url: "assets/images/calibration/sensor/thoroughfare.svg"
|
|
16
|
-
security:
|
|
17
|
-
label: "Outdoor and security lights"
|
|
18
|
-
image_url: "assets/images/calibration/sensor/security.svg"
|
|
19
|
-
|
|
20
|
-
reference_step:
|
|
21
|
-
label: "Reference Surface"
|
|
22
|
-
images(Enum):
|
|
23
|
-
offices:
|
|
24
|
-
label: "Offices and work areas"
|
|
25
|
-
image_url: "assets/images/calibration/reference/office.svg"
|
|
26
|
-
thoroughfares:
|
|
27
|
-
label: "Walkways and thoroughfares"
|
|
28
|
-
image_url: "assets/images/calibration/reference/thoroughfare.svg"
|
|
29
|
-
security:
|
|
30
|
-
label: "Outdoor and security lights"
|
|
31
|
-
image_url: "assets/images/calibration/reference/security.svg"
|
|
32
|
-
|
|
33
|
-
measure_step:
|
|
34
|
-
label: "Measure Levels"
|
|
35
|
-
percentage_level: "{level, number, integer}%"
|
|
36
|
-
all_off: "Ambient"
|
|
37
|
-
|
|
38
|
-
busy_messages:
|
|
39
|
-
initializing_session: 'Initializing...'
|
|
40
|
-
acquiring_sensor: 'Acquiring sensor...'
|
|
41
|
-
adjusting_levels: 'Adjusting levels...'
|
|
42
|
-
reading_sensor: 'Reading sensor...'
|
|
43
|
-
preparing: 'Preparing room...'
|
|
44
|
-
|
|
45
|
-
validation:
|
|
46
|
-
sample_errors:
|
|
47
|
-
level_greater_than_next: 'This reading is higher than one below'
|
|
48
|
-
level_less_than_previous: 'This reading is lower than one above'
|
|
49
|
-
errors(Enum):
|
|
50
|
-
ambient_changes:
|
|
51
|
-
title: "There are some readings that didn't increase as the levels increased."
|
|
52
|
-
description:
|
|
53
|
-
- 'This is most likely caused by changes in the ambient levels during the calibration process.'
|
|
54
|
-
- "If this is the case you're best to take all the samples again during a time where the ambient levels are steady."
|
|
55
|
-
reference_surface_delta_too_small:
|
|
56
|
-
title: "The level changes recorded on the reference surface were too low"
|
|
57
|
-
description:
|
|
58
|
-
- "We need to get a change of at least 40 lux."
|
|
59
|
-
- "It looks like lights aren't bright enough for the reference surface you're using."
|
|
60
|
-
warnings(Confirm[]):
|
|
61
|
-
low_sensor_readings:
|
|
62
|
-
content:
|
|
63
|
-
- "The level changes detected by the sensor were very small"
|
|
64
|
-
- "We can continue but the room will be capable of gated daylight harvesting (i.e. simple on/off but no dimming)"
|
|
65
|
-
ok: "Save as they are?"
|
|
66
|
-
cancel: "No, don't save yet"
|
|
67
|
-
|
|
68
|
-
chart:
|
|
69
|
-
reference_series_name: "Surface Lux"
|
|
70
|
-
sensor_series_name: "Sensor Lux"
|
|
71
|
-
|
|
72
|
-
session_errors(Enum):
|
|
73
|
-
server_session_missing:
|
|
74
|
-
content:
|
|
75
|
-
- "server_session_missing"
|
|
76
|
-
ok: "Ok"
|
|
77
|
-
race_condition:
|
|
78
|
-
content:
|
|
79
|
-
- "race_condition"
|
|
80
|
-
ok: "Ok"
|
|
81
|
-
unexpected_validation_error:
|
|
82
|
-
content:
|
|
83
|
-
- "unexpected_validation_error"
|
|
84
|
-
ok: "Ok"
|
|
85
|
-
facility_controller_not_synchronized:
|
|
86
|
-
content:
|
|
87
|
-
- "facility_controller_not_synchronized"
|
|
88
|
-
ok: "Ok"
|
|
89
|
-
light_sensor_acquisition_failed:
|
|
90
|
-
content:
|
|
91
|
-
- "light_sensor_acquisition_failed"
|
|
92
|
-
ok: "Ok"
|
|
93
|
-
light_sensor_read_failed:
|
|
94
|
-
content:
|
|
95
|
-
- "light_sensor_read_failed"
|
|
96
|
-
ok: "Ok"
|
|
97
|
-
room_missing:
|
|
98
|
-
content:
|
|
99
|
-
- "room_missing"
|
|
100
|
-
ok: "Ok"
|
|
101
|
-
lights_have_alarms:
|
|
102
|
-
content:
|
|
103
|
-
- "Some of the lights in this room have alarms which may interfer with the calibration process."
|
|
104
|
-
- "You'll need to sort out the issues and then try calibrating again."
|
|
105
|
-
ok: "Ok"
|
|
106
|
-
unknown_session_state:
|
|
107
|
-
content:
|
|
108
|
-
- "Hmmm, dang. We've had an error we weren't expecting."
|
|
109
|
-
ok: "Ok, Bugger"
|
|
110
|
-
device_list_changed:
|
|
111
|
-
content:
|
|
112
|
-
- "device list has changed"
|
|
113
|
-
ok: "Ok"
|
|
114
|
-
area_calibration_session_exists:
|
|
115
|
-
content:
|
|
116
|
-
- "area_calibration_session_exists"
|
|
117
|
-
ok: "Ok"
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|