@strato-admin/language-en 0.1.0 → 0.3.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.
@@ -1,57 +1,22 @@
1
1
  {
2
- "ra.action.add": "Add",
3
- "ra.action.cancel": "Cancel",
4
- "ra.action.clear_array_input": "Clear the list",
5
- "ra.action.close": "Close",
6
- "ra.action.confirm": "Confirm",
7
- "ra.action.create": "Create",
8
- "ra.action.delete": "Delete",
9
- "ra.action.edit": "Edit",
10
- "ra.action.move_down": "Move down",
11
- "ra.action.move_up": "Move up",
12
- "ra.action.refresh": "Refresh",
13
- "ra.action.remove": "Remove",
14
- "ra.action.save": "Save",
15
- "ra.action.undo": "Undo",
16
- "ra.action.update": "Update",
17
- "ra.auth.auth_check_error": "Please login to continue",
18
- "ra.boolean.false": "No",
19
- "ra.boolean.true": "Yes",
20
- "ra.input.references.all_missing": "Unable to find references data.",
21
- "ra.input.references.many_missing": "At least one of the associated references no longer appears to be available.",
22
- "ra.input.references.single_missing": "Associated reference no longer appears to be available.",
23
- "ra.message.clear_array_input": "Are you sure you want to clear the whole list?",
24
- "ra.message.delete_content": "Are you sure you want to delete this {name}?",
25
- "ra.message.delete_title": "Delete {name} {recordRepresentation}",
26
- "ra.message.invalid_form": "The form is not valid. Please check for errors",
27
- "ra.message.select_all_limit_reached": "{max, plural, one {There are too many elements to select them all. Only the first element was selected.} other {There are too many elements to select them all. Only the first # elements were selected.} }",
28
- "ra.message.unsaved_changes": "Some of your changes weren't saved. Are you sure you want to ignore them?",
29
- "ra.message.update_content": "{smart_count, plural, one {Are you sure you want to update {name} {recordRepresentation}?} other {Are you sure you want to update these # items?}}",
30
- "ra.message.update_title": "{smart_count, plural, one {Update {name} {recordRepresentation}} other {Update # {name}}}",
31
- "ra.navigation.next": "Go to next page",
32
- "ra.navigation.page": "Go to page {page}",
33
- "ra.navigation.page_range_info": "{offsetBegin}-{offsetEnd} of {total}",
34
- "ra.navigation.previous": "Go to previous page",
35
- "ra.notification.created": "Element created",
36
- "ra.notification.data_provider_error": "dataProvider error. Check the console for details.",
37
- "ra.notification.deleted": "{smart_count, plural, one {Element deleted} other {# elements deleted}}",
38
- "ra.notification.http_error": "Server communication error",
39
- "ra.notification.item_doesnt_exist": "Element does not exist",
40
- "ra.notification.logged_out": "Your session has ended, please reconnect.",
41
- "ra.notification.not_authorized": "You're not authorized to access this resource.",
42
- "ra.notification.updated": "{smart_count, plural, one {Element updated} other {# elements updated}}",
43
- "ra.page.create": "Create {name}",
44
- "ra.page.edit": "{name} {recordRepresentation}",
45
- "ra.page.list": "{name}",
46
- "ra.page.show": "{name} {recordRepresentation}",
47
- "ra.validation.email": "Must be a valid email",
48
- "ra.validation.maxLength": "{max, plural, one {Must be # character or less} other {Must be # characters or less}}",
49
- "ra.validation.maxValue": "{max, plural, other {Must be # or less}}",
50
- "ra.validation.minLength": "{min, plural, one {Must be # character at least} other {Must be # characters at least}}",
51
- "ra.validation.minValue": "{min, plural, other {Must be at least #}}",
52
- "ra.validation.number": "Must be a number",
53
- "ra.validation.oneOf": "Must be one of: {options}",
54
- "ra.validation.regex": "Must match a specific format (regexp): {pattern}",
55
- "ra.validation.required": "Required",
56
- "ra.validation.unique": "Must be unique"
2
+ "152c2aj": "Product Catalog",
3
+ "16gte2l": "Create",
4
+ "kgw9o9": "optional",
5
+ "lewgh4": "Save",
6
+ "strato.action.cancel": "Cancel",
7
+ "strato.action.close": "Close",
8
+ "strato.action.confirm": "Confirm",
9
+ "strato.action.create": "Create",
10
+ "strato.action.delete": "Delete",
11
+ "strato.action.edit": "Edit",
12
+ "strato.action.save": "Save",
13
+ "strato.action.select_columns": "Select visible columns",
14
+ "strato.action.toggle_theme": "Toggle theme",
15
+ "strato.auth.logout": "Sign out",
16
+ "strato.auth.profile": "Profile",
17
+ "strato.auth.user_menu": "User",
18
+ "strato.boolean.false": "No",
19
+ "strato.boolean.true": "Yes",
20
+ "strato.message.bulk_delete_content": "{smart_count, plural, one {Are you sure you want to delete this item?} other {Are you sure you want to delete these # items?} }",
21
+ "strato.message.bulk_delete_title": "{smart_count, plural, one {Delete this item} other {Delete these # items} }"
57
22
  }
package/package.json CHANGED
@@ -1,13 +1,14 @@
1
1
  {
2
2
  "name": "@strato-admin/language-en",
3
- "version": "0.1.0",
3
+ "version": "0.3.0",
4
4
  "description": "Strato Admin Language - English",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "exports": {
8
8
  ".": {
9
9
  "types": "./dist/index.d.ts",
10
- "default": "dist/index.js"
10
+ "development": "./src/index.ts",
11
+ "default": "./dist/index.js"
11
12
  }
12
13
  },
13
14
  "files": [
@@ -30,16 +31,16 @@
30
31
  "license": "MIT",
31
32
  "repository": {
32
33
  "type": "git",
33
- "url": "https://github.com/vgrits/strato-admin.git",
34
+ "url": "https://github.com/vadimgu/strato-admin.git",
34
35
  "directory": "packages/strato-language-en"
35
36
  },
36
37
  "devDependencies": {
37
- "@formatjs/cli": "^6.13.0"
38
+ "@strato-admin/i18n-cli": "0.3.0"
38
39
  },
39
40
  "scripts": {
40
41
  "build": "tsc -p tsconfig.build.json",
41
42
  "test": "echo \"Error: no test specified\" && exit 1",
42
- "i18n:extract": "formatjs extract '../*/src/**/*.{ts,tsx}' --out-file messages.json",
43
- "i18n:compile": "formatjs compile messages.json --out-file src/messages.json"
43
+ "i18n:extract": "strato-extract --format=po '../strato-{cloudscape,core}/src/**/*.{ts,tsx}' --ignore='../**/*.stories.tsx' --ignore='../**/*.test.tsx' --ignore='../**/stories/**' --locale en --out-file messages.po",
44
+ "i18n:compile": "strato-compile messages.po --out-file src/messages.json"
44
45
  }
45
46
  }
package/src/messages.json CHANGED
@@ -1,57 +1,22 @@
1
1
  {
2
- "ra.action.add": "Add",
3
- "ra.action.cancel": "Cancel",
4
- "ra.action.clear_array_input": "Clear the list",
5
- "ra.action.close": "Close",
6
- "ra.action.confirm": "Confirm",
7
- "ra.action.create": "Create",
8
- "ra.action.delete": "Delete",
9
- "ra.action.edit": "Edit",
10
- "ra.action.move_down": "Move down",
11
- "ra.action.move_up": "Move up",
12
- "ra.action.refresh": "Refresh",
13
- "ra.action.remove": "Remove",
14
- "ra.action.save": "Save",
15
- "ra.action.undo": "Undo",
16
- "ra.action.update": "Update",
17
- "ra.auth.auth_check_error": "Please login to continue",
18
- "ra.boolean.false": "No",
19
- "ra.boolean.true": "Yes",
20
- "ra.input.references.all_missing": "Unable to find references data.",
21
- "ra.input.references.many_missing": "At least one of the associated references no longer appears to be available.",
22
- "ra.input.references.single_missing": "Associated reference no longer appears to be available.",
23
- "ra.message.clear_array_input": "Are you sure you want to clear the whole list?",
24
- "ra.message.delete_content": "Are you sure you want to delete this {name}?",
25
- "ra.message.delete_title": "Delete {name} {recordRepresentation}",
26
- "ra.message.invalid_form": "The form is not valid. Please check for errors",
27
- "ra.message.select_all_limit_reached": "{max, plural, one {There are too many elements to select them all. Only the first element was selected.} other {There are too many elements to select them all. Only the first # elements were selected.} }",
28
- "ra.message.unsaved_changes": "Some of your changes weren't saved. Are you sure you want to ignore them?",
29
- "ra.message.update_content": "{smart_count, plural, one {Are you sure you want to update {name} {recordRepresentation}?} other {Are you sure you want to update these # items?}}",
30
- "ra.message.update_title": "{smart_count, plural, one {Update {name} {recordRepresentation}} other {Update # {name}}}",
31
- "ra.navigation.next": "Go to next page",
32
- "ra.navigation.page": "Go to page {page}",
33
- "ra.navigation.page_range_info": "{offsetBegin}-{offsetEnd} of {total}",
34
- "ra.navigation.previous": "Go to previous page",
35
- "ra.notification.created": "Element created",
36
- "ra.notification.data_provider_error": "dataProvider error. Check the console for details.",
37
- "ra.notification.deleted": "{smart_count, plural, one {Element deleted} other {# elements deleted}}",
38
- "ra.notification.http_error": "Server communication error",
39
- "ra.notification.item_doesnt_exist": "Element does not exist",
40
- "ra.notification.logged_out": "Your session has ended, please reconnect.",
41
- "ra.notification.not_authorized": "You're not authorized to access this resource.",
42
- "ra.notification.updated": "{smart_count, plural, one {Element updated} other {# elements updated}}",
43
- "ra.page.create": "Create {name}",
44
- "ra.page.edit": "{name} {recordRepresentation}",
45
- "ra.page.list": "{name}",
46
- "ra.page.show": "{name} {recordRepresentation}",
47
- "ra.validation.email": "Must be a valid email",
48
- "ra.validation.maxLength": "{max, plural, one {Must be # character or less} other {Must be # characters or less}}",
49
- "ra.validation.maxValue": "{max, plural, other {Must be # or less}}",
50
- "ra.validation.minLength": "{min, plural, one {Must be # character at least} other {Must be # characters at least}}",
51
- "ra.validation.minValue": "{min, plural, other {Must be at least #}}",
52
- "ra.validation.number": "Must be a number",
53
- "ra.validation.oneOf": "Must be one of: {options}",
54
- "ra.validation.regex": "Must match a specific format (regexp): {pattern}",
55
- "ra.validation.required": "Required",
56
- "ra.validation.unique": "Must be unique"
2
+ "152c2aj": "Product Catalog",
3
+ "16gte2l": "Create",
4
+ "kgw9o9": "optional",
5
+ "lewgh4": "Save",
6
+ "strato.action.cancel": "Cancel",
7
+ "strato.action.close": "Close",
8
+ "strato.action.confirm": "Confirm",
9
+ "strato.action.create": "Create",
10
+ "strato.action.delete": "Delete",
11
+ "strato.action.edit": "Edit",
12
+ "strato.action.save": "Save",
13
+ "strato.action.select_columns": "Select visible columns",
14
+ "strato.action.toggle_theme": "Toggle theme",
15
+ "strato.auth.logout": "Sign out",
16
+ "strato.auth.profile": "Profile",
17
+ "strato.auth.user_menu": "User",
18
+ "strato.boolean.false": "No",
19
+ "strato.boolean.true": "Yes",
20
+ "strato.message.bulk_delete_content": "{smart_count, plural, one {Are you sure you want to delete this item?} other {Are you sure you want to delete these # items?} }",
21
+ "strato.message.bulk_delete_title": "{smart_count, plural, one {Delete this item} other {Delete these # items} }"
57
22
  }