tango-app-ui-shared 3.0.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.
Files changed (114) hide show
  1. package/.eslintrc.json +37 -0
  2. package/README.md +24 -0
  3. package/ng-package.json +7 -0
  4. package/package.json +12 -0
  5. package/src/lib/guards/auth.guard.ts +20 -0
  6. package/src/lib/i18n/index.ts +2 -0
  7. package/src/lib/i18n/translation.module.ts +9 -0
  8. package/src/lib/i18n/translation.service.ts +61 -0
  9. package/src/lib/i18n/vocabs/ch.ts +105 -0
  10. package/src/lib/i18n/vocabs/de.ts +105 -0
  11. package/src/lib/i18n/vocabs/en.ts +105 -0
  12. package/src/lib/i18n/vocabs/es.ts +105 -0
  13. package/src/lib/i18n/vocabs/fr.ts +105 -0
  14. package/src/lib/i18n/vocabs/jp.ts +105 -0
  15. package/src/lib/interceptors/http-auth-interceptor.ts +21 -0
  16. package/src/lib/interfaces/global-state.ts +6 -0
  17. package/src/lib/modules/errors/error404/error404.component.html +24 -0
  18. package/src/lib/modules/errors/error404/error404.component.scss +0 -0
  19. package/src/lib/modules/errors/error404/error404.component.spec.ts +25 -0
  20. package/src/lib/modules/errors/error404/error404.component.ts +50 -0
  21. package/src/lib/modules/errors/error500/error500.component.html +24 -0
  22. package/src/lib/modules/errors/error500/error500.component.scss +0 -0
  23. package/src/lib/modules/errors/error500/error500.component.spec.ts +25 -0
  24. package/src/lib/modules/errors/error500/error500.component.ts +50 -0
  25. package/src/lib/modules/errors/errors-routing.module.ts +30 -0
  26. package/src/lib/modules/errors/errors.component.html +15 -0
  27. package/src/lib/modules/errors/errors.component.scss +4 -0
  28. package/src/lib/modules/errors/errors.component.spec.ts +25 -0
  29. package/src/lib/modules/errors/errors.component.ts +42 -0
  30. package/src/lib/modules/errors/errors.module.ts +21 -0
  31. package/src/lib/modules/layout/content/content.component.html +12 -0
  32. package/src/lib/modules/layout/content/content.component.scss +0 -0
  33. package/src/lib/modules/layout/content/content.component.ts +35 -0
  34. package/src/lib/modules/layout/footer/footer.component.html +32 -0
  35. package/src/lib/modules/layout/footer/footer.component.scss +0 -0
  36. package/src/lib/modules/layout/footer/footer.component.spec.ts +25 -0
  37. package/src/lib/modules/layout/footer/footer.component.ts +13 -0
  38. package/src/lib/modules/layout/header/header-menu/header-menu.component.html +27 -0
  39. package/src/lib/modules/layout/header/header-menu/header-menu.component.scss +4 -0
  40. package/src/lib/modules/layout/header/header-menu/header-menu.component.spec.ts +25 -0
  41. package/src/lib/modules/layout/header/header-menu/header-menu.component.ts +38 -0
  42. package/src/lib/modules/layout/header/header.component.html +90 -0
  43. package/src/lib/modules/layout/header/header.component.scss +0 -0
  44. package/src/lib/modules/layout/header/header.component.spec.ts +25 -0
  45. package/src/lib/modules/layout/header/header.component.ts +139 -0
  46. package/src/lib/modules/layout/header/navbar/navbar.component.html +92 -0
  47. package/src/lib/modules/layout/header/navbar/navbar.component.scss +0 -0
  48. package/src/lib/modules/layout/header/navbar/navbar.component.spec.ts +23 -0
  49. package/src/lib/modules/layout/header/navbar/navbar.component.ts +20 -0
  50. package/src/lib/modules/layout/header/page-title/page-title.component.html +32 -0
  51. package/src/lib/modules/layout/header/page-title/page-title.component.ts +40 -0
  52. package/src/lib/modules/layout/keenicon/icons.json +1 -0
  53. package/src/lib/modules/layout/keenicon/keenicon.component.html +4 -0
  54. package/src/lib/modules/layout/keenicon/keenicon.component.scss +0 -0
  55. package/src/lib/modules/layout/keenicon/keenicon.component.spec.ts +23 -0
  56. package/src/lib/modules/layout/keenicon/keenicon.component.ts +30 -0
  57. package/src/lib/modules/layout/layout/layout.component.html +70 -0
  58. package/src/lib/modules/layout/layout/layout.component.scss +15 -0
  59. package/src/lib/modules/layout/layout/layout.component.ts +399 -0
  60. package/src/lib/modules/layout/layout.module.ts +93 -0
  61. package/src/lib/modules/layout/scripts-init/scripts-init.component.html +0 -0
  62. package/src/lib/modules/layout/scripts-init/scripts-init.component.ts +81 -0
  63. package/src/lib/modules/layout/scroll-top/scroll-top.component.html +1 -0
  64. package/src/lib/modules/layout/scroll-top/scroll-top.component.ts +75 -0
  65. package/src/lib/modules/layout/sidebar/sidebar-footer/sidebar-footer.component.html +9 -0
  66. package/src/lib/modules/layout/sidebar/sidebar-footer/sidebar-footer.component.scss +0 -0
  67. package/src/lib/modules/layout/sidebar/sidebar-footer/sidebar-footer.component.spec.ts +23 -0
  68. package/src/lib/modules/layout/sidebar/sidebar-footer/sidebar-footer.component.ts +13 -0
  69. package/src/lib/modules/layout/sidebar/sidebar-logo/sidebar-logo.component.html +26 -0
  70. package/src/lib/modules/layout/sidebar/sidebar-logo/sidebar-logo.component.scss +0 -0
  71. package/src/lib/modules/layout/sidebar/sidebar-logo/sidebar-logo.component.spec.ts +23 -0
  72. package/src/lib/modules/layout/sidebar/sidebar-logo/sidebar-logo.component.ts +36 -0
  73. package/src/lib/modules/layout/sidebar/sidebar-menu/sidebar-menu.component.html +276 -0
  74. package/src/lib/modules/layout/sidebar/sidebar-menu/sidebar-menu.component.scss +0 -0
  75. package/src/lib/modules/layout/sidebar/sidebar-menu/sidebar-menu.component.spec.ts +23 -0
  76. package/src/lib/modules/layout/sidebar/sidebar-menu/sidebar-menu.component.ts +15 -0
  77. package/src/lib/modules/layout/sidebar/sidebar.component.html +16 -0
  78. package/src/lib/modules/layout/sidebar/sidebar.component.scss +0 -0
  79. package/src/lib/modules/layout/sidebar/sidebar.component.spec.ts +23 -0
  80. package/src/lib/modules/layout/sidebar/sidebar.component.ts +203 -0
  81. package/src/lib/modules/layout/toolbar/accounting/accounting.component.html +84 -0
  82. package/src/lib/modules/layout/toolbar/accounting/accounting.component.scss +0 -0
  83. package/src/lib/modules/layout/toolbar/accounting/accounting.component.spec.ts +23 -0
  84. package/src/lib/modules/layout/toolbar/accounting/accounting.component.ts +14 -0
  85. package/src/lib/modules/layout/toolbar/classic/classic.component.html +37 -0
  86. package/src/lib/modules/layout/toolbar/classic/classic.component.scss +0 -0
  87. package/src/lib/modules/layout/toolbar/classic/classic.component.spec.ts +23 -0
  88. package/src/lib/modules/layout/toolbar/classic/classic.component.ts +88 -0
  89. package/src/lib/modules/layout/toolbar/extended/extended.component.html +100 -0
  90. package/src/lib/modules/layout/toolbar/extended/extended.component.scss +0 -0
  91. package/src/lib/modules/layout/toolbar/extended/extended.component.spec.ts +23 -0
  92. package/src/lib/modules/layout/toolbar/extended/extended.component.ts +12 -0
  93. package/src/lib/modules/layout/toolbar/reports/reports.component.html +62 -0
  94. package/src/lib/modules/layout/toolbar/reports/reports.component.scss +0 -0
  95. package/src/lib/modules/layout/toolbar/reports/reports.component.spec.ts +23 -0
  96. package/src/lib/modules/layout/toolbar/reports/reports.component.ts +14 -0
  97. package/src/lib/modules/layout/toolbar/saas/saas.component.html +77 -0
  98. package/src/lib/modules/layout/toolbar/saas/saas.component.scss +0 -0
  99. package/src/lib/modules/layout/toolbar/saas/saas.component.spec.ts +23 -0
  100. package/src/lib/modules/layout/toolbar/saas/saas.component.ts +14 -0
  101. package/src/lib/modules/layout/toolbar/toolbar.component.html +27 -0
  102. package/src/lib/modules/layout/toolbar/toolbar.component.scss +0 -0
  103. package/src/lib/modules/layout/toolbar/toolbar.component.spec.ts +25 -0
  104. package/src/lib/modules/layout/toolbar/toolbar.component.ts +125 -0
  105. package/src/lib/routes/route-wraper-modules/manage-wrapper.module.ts +12 -0
  106. package/src/lib/routes/route-wraper-modules/profile-wrapper.module.ts +12 -0
  107. package/src/lib/routes/route-wraper-modules/store-wrapper.module.ts +12 -0
  108. package/src/lib/routes/routing.ts +72 -0
  109. package/src/lib/services/auth.service.ts +16 -0
  110. package/src/lib/services/global-state.service.ts +11 -0
  111. package/src/public-api.ts +64 -0
  112. package/tsconfig.lib.json +14 -0
  113. package/tsconfig.lib.prod.json +10 -0
  114. package/tsconfig.spec.json +14 -0
package/.eslintrc.json ADDED
@@ -0,0 +1,37 @@
1
+ {
2
+ "extends": "../../.eslintrc.json",
3
+ "ignorePatterns": [
4
+ "!**/*"
5
+ ],
6
+ "overrides": [
7
+ {
8
+ "files": [
9
+ "*.ts"
10
+ ],
11
+ "rules": {
12
+ "@angular-eslint/directive-selector": [
13
+ "error",
14
+ {
15
+ "type": "attribute",
16
+ "prefix": "lib",
17
+ "style": "camelCase"
18
+ }
19
+ ],
20
+ "@angular-eslint/component-selector": [
21
+ "error",
22
+ {
23
+ "type": "element",
24
+ "prefix": "lib",
25
+ "style": "kebab-case"
26
+ }
27
+ ]
28
+ }
29
+ },
30
+ {
31
+ "files": [
32
+ "*.html"
33
+ ],
34
+ "rules": {}
35
+ }
36
+ ]
37
+ }
package/README.md ADDED
@@ -0,0 +1,24 @@
1
+ # TangoAppShared
2
+
3
+ This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 17.0.0.
4
+
5
+ ## Code scaffolding
6
+
7
+ Run `ng generate component component-name --project tango-app-shared` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project tango-app-shared`.
8
+ > Note: Don't forget to add `--project tango-app-shared` or else it will be added to the default project in your `angular.json` file.
9
+
10
+ ## Build
11
+
12
+ Run `ng build tango-app-shared` to build the project. The build artifacts will be stored in the `dist/` directory.
13
+
14
+ ## Publishing
15
+
16
+ After building your library with `ng build tango-app-shared`, go to the dist folder `cd dist/tango-app-shared` and run `npm publish`.
17
+
18
+ ## Running unit tests
19
+
20
+ Run `ng test tango-app-shared` to execute the unit tests via [Karma](https://karma-runner.github.io).
21
+
22
+ ## Further help
23
+
24
+ To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI Overview and Command Reference](https://angular.io/cli) page.
@@ -0,0 +1,7 @@
1
+ {
2
+ "$schema": "../../node_modules/ng-packagr/ng-package.schema.json",
3
+ "dest": "../../dist/tango-app-shared",
4
+ "lib": {
5
+ "entryFile": "src/public-api.ts"
6
+ }
7
+ }
package/package.json ADDED
@@ -0,0 +1,12 @@
1
+ {
2
+ "name": "tango-app-ui-shared",
3
+ "version": "3.0.0",
4
+ "peerDependencies": {
5
+ "@angular/common": "^17.0.0",
6
+ "@angular/core": "^17.0.0"
7
+ },
8
+ "dependencies": {
9
+ "tslib": "^2.3.0"
10
+ },
11
+ "sideEffects": false
12
+ }
@@ -0,0 +1,20 @@
1
+ import { Injectable } from '@angular/core';
2
+ import { ActivatedRouteSnapshot, RouterStateSnapshot } from '@angular/router';
3
+ import { AuthService } from '../services/auth.service';
4
+
5
+ @Injectable({ providedIn: 'root' })
6
+ export class AuthGuard {
7
+ constructor(private authService: AuthService) {}
8
+
9
+ canActivate(route: ActivatedRouteSnapshot, state: RouterStateSnapshot) {
10
+ const currentUser = localStorage.getItem('isLoggedIn');
11
+ if (currentUser === 'true') {
12
+ // logged in so return true
13
+ return true;
14
+ }
15
+
16
+ // not logged in so redirect to login page with the return url
17
+ this.authService.logout();
18
+ return false;
19
+ }
20
+ }
@@ -0,0 +1,2 @@
1
+ export * from './translation.module';
2
+ export * from './translation.service';
@@ -0,0 +1,9 @@
1
+ import { NgModule } from '@angular/core';
2
+ import { CommonModule } from '@angular/common';
3
+ import { TranslateModule } from '@ngx-translate/core';
4
+
5
+ @NgModule({
6
+ imports: [CommonModule, TranslateModule],
7
+ exports: [TranslateModule],
8
+ })
9
+ export class TranslationModule {}
@@ -0,0 +1,61 @@
1
+ // Localization is based on '@ngx-translate/core';
2
+ // Please be familiar with official documentations first => https://github.com/ngx-translate/core
3
+
4
+ import { Injectable } from '@angular/core';
5
+ import { TranslateService } from '@ngx-translate/core';
6
+
7
+ export interface Locale {
8
+ lang: string;
9
+ data: any;
10
+ }
11
+
12
+ const LOCALIZATION_LOCAL_STORAGE_KEY = 'language';
13
+
14
+ @Injectable({
15
+ providedIn: 'root',
16
+ })
17
+ export class TranslationService {
18
+ // Private properties
19
+ private langIds: any = [];
20
+
21
+ constructor(private translate: TranslateService) {
22
+ // add new langIds to the list
23
+ this.translate.addLangs(['en']);
24
+
25
+ // this language will be used as a fallback when a translation isn't found in the current language
26
+ this.translate.setDefaultLang('en');
27
+ }
28
+
29
+ loadTranslations(...args: Locale[]): void {
30
+ const locales = [...args];
31
+
32
+ locales.forEach((locale) => {
33
+ // use setTranslation() with the third argument set to true
34
+ // to append translations instead of replacing them
35
+ this.translate.setTranslation(locale.lang, locale.data, true);
36
+ this.langIds.push(locale.lang);
37
+ });
38
+
39
+ // add new languages to the list
40
+ this.translate.addLangs(this.langIds);
41
+ this.translate.use(this.getSelectedLanguage());
42
+ }
43
+
44
+ setLanguage(lang: string) {
45
+ if (lang) {
46
+ this.translate.use(this.translate.getDefaultLang());
47
+ this.translate.use(lang);
48
+ localStorage.setItem(LOCALIZATION_LOCAL_STORAGE_KEY, lang);
49
+ }
50
+ }
51
+
52
+ /**
53
+ * Returns selected language
54
+ */
55
+ getSelectedLanguage(): any {
56
+ return (
57
+ localStorage.getItem(LOCALIZATION_LOCAL_STORAGE_KEY) ||
58
+ this.translate.getDefaultLang()
59
+ );
60
+ }
61
+ }
@@ -0,0 +1,105 @@
1
+ // China
2
+ export const locale = {
3
+ lang: 'zh',
4
+ data: {
5
+ TRANSLATOR: {
6
+ SELECT: '选择你的语言',
7
+ },
8
+ MENU: {
9
+ NEW: '新',
10
+ ACTIONS: '行动',
11
+ CREATE_POST: '创建新帖子',
12
+ PAGES: 'Pages',
13
+ FEATURES: '特征',
14
+ APPS: '应用',
15
+ DASHBOARD: '仪表板',
16
+ },
17
+ AUTH: {
18
+ GENERAL: {
19
+ OR: '要么',
20
+ SUBMIT_BUTTON: '提交',
21
+ NO_ACCOUNT: '没有账号?',
22
+ SIGNUP_BUTTON: '注册',
23
+ FORGOT_BUTTON: '忘记密码',
24
+ BACK_BUTTON: '背部',
25
+ PRIVACY: '隐私',
26
+ LEGAL: '法律',
27
+ CONTACT: '联系',
28
+ },
29
+ LOGIN: {
30
+ TITLE: '创建帐号',
31
+ BUTTON: '签到',
32
+ },
33
+ FORGOT: {
34
+ TITLE: 'Forgotten Password?',
35
+ DESC: 'Enter your email to reset your password',
36
+ SUCCESS: 'Your account has been successfully reset.',
37
+ },
38
+ REGISTER: {
39
+ TITLE: 'Sign Up',
40
+ DESC: 'Enter your details to create your account',
41
+ SUCCESS: 'Your account has been successfuly registered.',
42
+ },
43
+ INPUT: {
44
+ EMAIL: 'Email',
45
+ FULLNAME: 'Fullname',
46
+ PASSWORD: 'Password',
47
+ CONFIRM_PASSWORD: 'Confirm Password',
48
+ USERNAME: '用戶名',
49
+ },
50
+ VALIDATION: {
51
+ INVALID: '{{name}} is not valid',
52
+ REQUIRED: '{{name}} is required',
53
+ MIN_LENGTH: '{{name}} minimum length is {{min}}',
54
+ AGREEMENT_REQUIRED: 'Accepting terms & conditions are required',
55
+ NOT_FOUND: 'The requested {{name}} is not found',
56
+ INVALID_LOGIN: 'The login detail is incorrect',
57
+ REQUIRED_FIELD: 'Required field',
58
+ MIN_LENGTH_FIELD: 'Minimum field length:',
59
+ MAX_LENGTH_FIELD: 'Maximum field length:',
60
+ INVALID_FIELD: 'Field is not valid',
61
+ },
62
+ },
63
+ ECOMMERCE: {
64
+ COMMON: {
65
+ SELECTED_RECORDS_COUNT: 'Selected records count: ',
66
+ ALL: 'All',
67
+ SUSPENDED: 'Suspended',
68
+ ACTIVE: 'Active',
69
+ FILTER: 'Filter',
70
+ BY_STATUS: 'by Status',
71
+ BY_TYPE: 'by Type',
72
+ BUSINESS: 'Business',
73
+ INDIVIDUAL: 'Individual',
74
+ SEARCH: 'Search',
75
+ IN_ALL_FIELDS: 'in all fields',
76
+ },
77
+ ECOMMERCE: 'eCommerce',
78
+ CUSTOMERS: {
79
+ CUSTOMERS: '顾客',
80
+ CUSTOMERS_LIST: '客户名单',
81
+ NEW_CUSTOMER: 'New Customer',
82
+ DELETE_CUSTOMER_SIMPLE: {
83
+ TITLE: 'Customer Delete',
84
+ DESCRIPTION: 'Are you sure to permanently delete this customer?',
85
+ WAIT_DESCRIPTION: 'Customer is deleting...',
86
+ MESSAGE: 'Customer has been deleted',
87
+ },
88
+ DELETE_CUSTOMER_MULTY: {
89
+ TITLE: 'Customers Delete',
90
+ DESCRIPTION: 'Are you sure to permanently delete selected customers?',
91
+ WAIT_DESCRIPTION: 'Customers are deleting...',
92
+ MESSAGE: 'Selected customers have been deleted',
93
+ },
94
+ UPDATE_STATUS: {
95
+ TITLE: 'Status has been updated for selected customers',
96
+ MESSAGE: 'Selected customers status have successfully been updated',
97
+ },
98
+ EDIT: {
99
+ UPDATE_MESSAGE: 'Customer has been updated',
100
+ ADD_MESSAGE: 'Customer has been created',
101
+ },
102
+ },
103
+ },
104
+ },
105
+ };
@@ -0,0 +1,105 @@
1
+ // Germany
2
+ export const locale = {
3
+ lang: 'de',
4
+ data: {
5
+ TRANSLATOR: {
6
+ SELECT: 'Wähle deine Sprache',
7
+ },
8
+ MENU: {
9
+ NEW: 'Neu',
10
+ ACTIONS: 'Aktionen',
11
+ CREATE_POST: 'Erstellen Sie einen neuen Beitrag',
12
+ PAGES: 'Pages',
13
+ FEATURES: 'Eigenschaften',
14
+ APPS: 'Apps',
15
+ DASHBOARD: 'Instrumententafel'
16
+ },
17
+ AUTH: {
18
+ GENERAL: {
19
+ OR: 'Oder',
20
+ SUBMIT_BUTTON: 'einreichen',
21
+ NO_ACCOUNT: 'Hast du kein Konto?',
22
+ SIGNUP_BUTTON: 'Anmelden',
23
+ FORGOT_BUTTON: 'Passwort vergessen',
24
+ BACK_BUTTON: 'Zurück',
25
+ PRIVACY: 'Privatsphäre',
26
+ LEGAL: 'Legal',
27
+ CONTACT: 'Kontakt',
28
+ },
29
+ LOGIN: {
30
+ TITLE: 'Create Account',
31
+ BUTTON: 'Sign In',
32
+ },
33
+ FORGOT: {
34
+ TITLE: 'Forgotten Password?',
35
+ DESC: 'Enter your email to reset your password',
36
+ SUCCESS: 'Your account has been successfully reset.'
37
+ },
38
+ REGISTER: {
39
+ TITLE: 'Sign Up',
40
+ DESC: 'Enter your details to create your account',
41
+ SUCCESS: 'Your account has been successfuly registered.'
42
+ },
43
+ INPUT: {
44
+ EMAIL: 'Email',
45
+ FULLNAME: 'Fullname',
46
+ PASSWORD: 'Password',
47
+ CONFIRM_PASSWORD: 'Confirm Password',
48
+ USERNAME: 'Nutzername'
49
+ },
50
+ VALIDATION: {
51
+ INVALID: '{{name}} is not valid',
52
+ REQUIRED: '{{name}} is required',
53
+ MIN_LENGTH: '{{name}} minimum length is {{min}}',
54
+ AGREEMENT_REQUIRED: 'Accepting terms & conditions are required',
55
+ NOT_FOUND: 'The requested {{name}} is not found',
56
+ INVALID_LOGIN: 'The login detail is incorrect',
57
+ REQUIRED_FIELD: 'Required field',
58
+ MIN_LENGTH_FIELD: 'Minimum field length:',
59
+ MAX_LENGTH_FIELD: 'Maximum field length:',
60
+ INVALID_FIELD: 'Field is not valid',
61
+ }
62
+ },
63
+ ECOMMERCE: {
64
+ COMMON: {
65
+ SELECTED_RECORDS_COUNT: 'Selected records count: ',
66
+ ALL: 'All',
67
+ SUSPENDED: 'Suspended',
68
+ ACTIVE: 'Active',
69
+ FILTER: 'Filter',
70
+ BY_STATUS: 'by Status',
71
+ BY_TYPE: 'by Type',
72
+ BUSINESS: 'Business',
73
+ INDIVIDUAL: 'Individual',
74
+ SEARCH: 'Search',
75
+ IN_ALL_FIELDS: 'in all fields'
76
+ },
77
+ ECOMMERCE: 'eCommerce',
78
+ CUSTOMERS: {
79
+ CUSTOMERS: 'Customers',
80
+ CUSTOMERS_LIST: 'Customers list',
81
+ NEW_CUSTOMER: 'New Customer',
82
+ DELETE_CUSTOMER_SIMPLE: {
83
+ TITLE: 'Customer Delete',
84
+ DESCRIPTION: 'Are you sure to permanently delete this customer?',
85
+ WAIT_DESCRIPTION: 'Customer is deleting...',
86
+ MESSAGE: 'Customer has been deleted'
87
+ },
88
+ DELETE_CUSTOMER_MULTY: {
89
+ TITLE: 'Customers Delete',
90
+ DESCRIPTION: 'Are you sure to permanently delete selected customers?',
91
+ WAIT_DESCRIPTION: 'Customers are deleting...',
92
+ MESSAGE: 'Selected customers have been deleted'
93
+ },
94
+ UPDATE_STATUS: {
95
+ TITLE: 'Status has been updated for selected customers',
96
+ MESSAGE: 'Selected customers status have successfully been updated'
97
+ },
98
+ EDIT: {
99
+ UPDATE_MESSAGE: 'Customer has been updated',
100
+ ADD_MESSAGE: 'Customer has been created'
101
+ }
102
+ }
103
+ }
104
+ }
105
+ };
@@ -0,0 +1,105 @@
1
+ // USA
2
+ export const locale = {
3
+ lang: 'en',
4
+ data: {
5
+ TRANSLATOR: {
6
+ SELECT: 'Select your language',
7
+ },
8
+ MENU: {
9
+ NEW: 'new',
10
+ ACTIONS: 'Actions',
11
+ CREATE_POST: 'Create New Post',
12
+ PAGES: 'Pages',
13
+ FEATURES: 'Features',
14
+ APPS: 'Apps',
15
+ DASHBOARD: 'Dashboard',
16
+ },
17
+ AUTH: {
18
+ GENERAL: {
19
+ OR: 'Or',
20
+ SUBMIT_BUTTON: 'Submit',
21
+ NO_ACCOUNT: 'Don\'t have an account?',
22
+ SIGNUP_BUTTON: 'Sign Up',
23
+ FORGOT_BUTTON: 'Forgot Password',
24
+ BACK_BUTTON: 'Back',
25
+ PRIVACY: 'Privacy',
26
+ LEGAL: 'Legal',
27
+ CONTACT: 'Contact',
28
+ },
29
+ LOGIN: {
30
+ TITLE: 'Login Account',
31
+ BUTTON: 'Sign In',
32
+ },
33
+ FORGOT: {
34
+ TITLE: 'Forgotten Password?',
35
+ DESC: 'Enter your email to reset your password',
36
+ SUCCESS: 'Your account has been successfully reset.'
37
+ },
38
+ REGISTER: {
39
+ TITLE: 'Sign Up',
40
+ DESC: 'Enter your details to create your account',
41
+ SUCCESS: 'Your account has been successfuly registered.'
42
+ },
43
+ INPUT: {
44
+ EMAIL: 'Email',
45
+ FULLNAME: 'Fullname',
46
+ PASSWORD: 'Password',
47
+ CONFIRM_PASSWORD: 'Confirm Password',
48
+ USERNAME: 'Username'
49
+ },
50
+ VALIDATION: {
51
+ INVALID: '{{name}} is not valid',
52
+ REQUIRED: '{{name}} is required',
53
+ MIN_LENGTH: '{{name}} minimum length is {{min}}',
54
+ AGREEMENT_REQUIRED: 'Accepting terms & conditions are required',
55
+ NOT_FOUND: 'The requested {{name}} is not found',
56
+ INVALID_LOGIN: 'The login detail is incorrect',
57
+ REQUIRED_FIELD: 'Required field',
58
+ MIN_LENGTH_FIELD: 'Minimum field length:',
59
+ MAX_LENGTH_FIELD: 'Maximum field length:',
60
+ INVALID_FIELD: 'Field is not valid',
61
+ }
62
+ },
63
+ ECOMMERCE: {
64
+ COMMON: {
65
+ SELECTED_RECORDS_COUNT: 'Selected records count: ',
66
+ ALL: 'All',
67
+ SUSPENDED: 'Suspended',
68
+ ACTIVE: 'Active',
69
+ FILTER: 'Filter',
70
+ BY_STATUS: 'by Status',
71
+ BY_TYPE: 'by Type',
72
+ BUSINESS: 'Business',
73
+ INDIVIDUAL: 'Individual',
74
+ SEARCH: 'Search',
75
+ IN_ALL_FIELDS: 'in all fields'
76
+ },
77
+ ECOMMERCE: 'eCommerce',
78
+ CUSTOMERS: {
79
+ CUSTOMERS: 'Customers',
80
+ CUSTOMERS_LIST: 'Customers list',
81
+ NEW_CUSTOMER: 'New Customer',
82
+ DELETE_CUSTOMER_SIMPLE: {
83
+ TITLE: 'Customer Delete',
84
+ DESCRIPTION: 'Are you sure to permanently delete this customer?',
85
+ WAIT_DESCRIPTION: 'Customer is deleting...',
86
+ MESSAGE: 'Customer has been deleted'
87
+ },
88
+ DELETE_CUSTOMER_MULTY: {
89
+ TITLE: 'Customers Delete',
90
+ DESCRIPTION: 'Are you sure to permanently delete selected customers?',
91
+ WAIT_DESCRIPTION: 'Customers are deleting...',
92
+ MESSAGE: 'Selected customers have been deleted'
93
+ },
94
+ UPDATE_STATUS: {
95
+ TITLE: 'Status has been updated for selected customers',
96
+ MESSAGE: 'Selected customers status have successfully been updated'
97
+ },
98
+ EDIT: {
99
+ UPDATE_MESSAGE: 'Customer has been updated',
100
+ ADD_MESSAGE: 'Customer has been created'
101
+ }
102
+ }
103
+ }
104
+ }
105
+ };
@@ -0,0 +1,105 @@
1
+ // Spain
2
+ export const locale = {
3
+ lang: 'es',
4
+ data: {
5
+ TRANSLATOR: {
6
+ SELECT: 'Elige tu idioma',
7
+ },
8
+ MENU: {
9
+ NEW: 'nuevo',
10
+ ACTIONS: 'Comportamiento',
11
+ CREATE_POST: 'Crear nueva publicación',
12
+ PAGES: 'Pages',
13
+ FEATURES: 'Caracteristicas',
14
+ APPS: 'Aplicaciones',
15
+ DASHBOARD: 'Tablero'
16
+ },
17
+ AUTH: {
18
+ GENERAL: {
19
+ OR: 'O',
20
+ SUBMIT_BUTTON: 'Enviar',
21
+ NO_ACCOUNT: 'No tienes una cuenta?',
22
+ SIGNUP_BUTTON: 'Regístrate',
23
+ FORGOT_BUTTON: 'Se te olvidó tu contraseña',
24
+ BACK_BUTTON: 'Espalda',
25
+ PRIVACY: 'Intimidad',
26
+ LEGAL: 'Legal',
27
+ CONTACT: 'Contacto',
28
+ },
29
+ LOGIN: {
30
+ TITLE: 'Crear una cuenta',
31
+ BUTTON: 'Registrarse',
32
+ },
33
+ FORGOT: {
34
+ TITLE: 'Contraseña olvidada?',
35
+ DESC: 'Ingrese su correo electrónico para restablecer su contraseña',
36
+ SUCCESS: 'Your account has been successfully reset.'
37
+ },
38
+ REGISTER: {
39
+ TITLE: 'Sign Up',
40
+ DESC: 'Enter your details to create your account',
41
+ SUCCESS: 'Your account has been successfuly registered.'
42
+ },
43
+ INPUT: {
44
+ EMAIL: 'Email',
45
+ FULLNAME: 'Fullname',
46
+ PASSWORD: 'Password',
47
+ CONFIRM_PASSWORD: 'Confirm Password',
48
+ USERNAME: 'Usuario'
49
+ },
50
+ VALIDATION: {
51
+ INVALID: '{{name}} is not valid',
52
+ REQUIRED: '{{name}} is required',
53
+ MIN_LENGTH: '{{name}} minimum length is {{min}}',
54
+ AGREEMENT_REQUIRED: 'Accepting terms & conditions are required',
55
+ NOT_FOUND: 'The requested {{name}} is not found',
56
+ INVALID_LOGIN: 'The login detail is incorrect',
57
+ REQUIRED_FIELD: 'Required field',
58
+ MIN_LENGTH_FIELD: 'Minimum field length:',
59
+ MAX_LENGTH_FIELD: 'Maximum field length:',
60
+ INVALID_FIELD: 'Field is not valid',
61
+ }
62
+ },
63
+ ECOMMERCE: {
64
+ COMMON: {
65
+ SELECTED_RECORDS_COUNT: 'Selected records count: ',
66
+ ALL: 'All',
67
+ SUSPENDED: 'Suspended',
68
+ ACTIVE: 'Active',
69
+ FILTER: 'Filter',
70
+ BY_STATUS: 'by Status',
71
+ BY_TYPE: 'by Type',
72
+ BUSINESS: 'Business',
73
+ INDIVIDUAL: 'Individual',
74
+ SEARCH: 'Search',
75
+ IN_ALL_FIELDS: 'in all fields'
76
+ },
77
+ ECOMMERCE: 'eCommerce',
78
+ CUSTOMERS: {
79
+ CUSTOMERS: 'Customers',
80
+ CUSTOMERS_LIST: 'Customers list',
81
+ NEW_CUSTOMER: 'New Customer',
82
+ DELETE_CUSTOMER_SIMPLE: {
83
+ TITLE: 'Customer Delete',
84
+ DESCRIPTION: 'Are you sure to permanently delete this customer?',
85
+ WAIT_DESCRIPTION: 'Customer is deleting...',
86
+ MESSAGE: 'Customer has been deleted'
87
+ },
88
+ DELETE_CUSTOMER_MULTY: {
89
+ TITLE: 'Customers Delete',
90
+ DESCRIPTION: 'Are you sure to permanently delete selected customers?',
91
+ WAIT_DESCRIPTION: 'Customers are deleting...',
92
+ MESSAGE: 'Selected customers have been deleted'
93
+ },
94
+ UPDATE_STATUS: {
95
+ TITLE: 'Status has been updated for selected customers',
96
+ MESSAGE: 'Selected customers status have successfully been updated'
97
+ },
98
+ EDIT: {
99
+ UPDATE_MESSAGE: 'Customer has been updated',
100
+ ADD_MESSAGE: 'Customer has been created'
101
+ }
102
+ }
103
+ }
104
+ }
105
+ };