diff --git a/demo-shell-ng2/app/components/tag/tag.component.html b/demo-shell-ng2/app/components/tag/tag.component.html
index 6a26d0fe3e..de2e60e9ff 100644
--- a/demo-shell-ng2/app/components/tag/tag.component.html
+++ b/demo-shell-ng2/app/components/tag/tag.component.html
@@ -1,4 +1,4 @@
-
@@ -8,13 +8,17 @@
- List Tags Content Services
+
+ {{'TAG.LIST' | translate }}
+
- Tag list By Node ID
+
+ {{'TAG.NODE_LIST' | translate }}
+
diff --git a/demo-shell-ng2/config/webpack.common.js b/demo-shell-ng2/config/webpack.common.js
index 99dffd6cf7..e18fd4f7fe 100644
--- a/demo-shell-ng2/config/webpack.common.js
+++ b/demo-shell-ng2/config/webpack.common.js
@@ -145,11 +145,7 @@ module.exports = {
inline: true,
proxy: {
'/ecm': {
- target: {
- host: "0.0.0.0",
- protocol: 'http:',
- port: 8080
- },
+ target: 'http://adfdev.lab.alfresco.me/',
pathRewrite: {
'^/ecm': ''
},
@@ -164,11 +160,7 @@ module.exports = {
}
},
'/bpm': {
- target: {
- host: "0.0.0.0",
- protocol: 'http:',
- port: 9999
- },
+ target: 'http://adfdev.lab.alfresco.me/',
pathRewrite: {
'^/bpm': ''
},
diff --git a/demo-shell-ng2/resources/i18n/en.json b/demo-shell-ng2/resources/i18n/en.json
index aa0f551d0a..bb6bc66fdc 100644
--- a/demo-shell-ng2/resources/i18n/en.json
+++ b/demo-shell-ng2/resources/i18n/en.json
@@ -1,6 +1,30 @@
{
"title": "Welcome",
+ "APP_LAYOUT": {
+ "APP_NAME": "ADF Demo Application",
+ "HOME": "Home",
+ "CONTENT_SERVICES": "Content Services",
+ "PROCESS_SERVICES": "Process Services",
+ "LOGIN": "Login",
+ "CUSTOM_SOURCES": "DL: Custom Sources",
+ "DATATABLE": "Datatable",
+ "FORM": "Form",
+ "FORM_LIST": "Form List",
+ "UPLOADER": "Uploader",
+ "WEBSCRIPT": "Webscript",
+ "TAG": "Tag",
+ "SOCIAL": "Social",
+ "SETTINGS": "Settings",
+ "ABOUT": "About"
+ },
"DOCUMENT_LIST": {
+ "MULTISELECT_CHECKBOXES" :"Multiselect (with checkboxes)",
+ "MULTIPLE_FILE_UPLOAD" :"Multiple File Upload",
+ "FOLDER_UPLOAD" :"Folder upload",
+ "CUSTOM_FILTER" :"Custom extensions filter",
+ "ENABLE_VERSIONING" :"Enable versioning",
+ "MULTISELECT_DESCRIPTION" : "Enable upload (demoing enabled/disabled state only if the permission are not checked dynamically)",
+ "DESCRIPTION_" : "For 'Multiple' selection mode use Cmd (macOS) or Ctrl (Win) to toggle selection of multiple items.",
"COLUMNS": {
"DISPLAY_NAME": "Display name",
"TAG": "Tag",
@@ -22,6 +46,15 @@
}
}
},
+ "DATATABLE" :{
+ "RESET_DEFAULT":"Reset to default",
+ "ADD_ROW":"Add row",
+ "REPLACE_ROWS":"Replace rows",
+ "REPLACE_COLUMNS":"Replace columns",
+ "LOAD_NODE":"Load Node",
+ "MULTISELECT":"Multiselect",
+ "MULTISELECT_DESCRIPTION":"For 'Multiple' selection mode use Cmd (macOS) or Ctrl (Win) to toggle selection of multiple items."
+ },
"ANALYTICS_REPORT": {
"NO_REPORT_MESSAGE": "No report selected. Choose a report from the list"
},
@@ -38,10 +71,28 @@
"CS-HOST": "Content Services host URL configuration",
"BP-HOST": "Process Services host URL configuration",
"BACK": "Back",
- "APPLY": "APPLY"
+ "APPLY": "APPLY",
+ "NOT_VALID": "Host not valid! http(s)://host|ip:port(/path)"
},
- "FORM-LIST":{
+ "FORM-LIST": {
"STORE": "Store",
"RESTORE": "Restore"
+ },
+ "LOGIN": {
+ "CONTENT_SERVICES": "Content Services",
+ "PROCESS_SERVICES": "Process Services",
+ "LOGIN_FOOTER": "Login footer"
+ },
+ "SEARCH": {
+ "RESULTS": "Search results"
+ },
+ "SOCIAL": {
+ "LIKE":"Like component",
+ "RATING":"Rating component"
+ },
+ "TAG": {
+ "LIST":"List Tags Content Services",
+ "INSERT":"Insert Node Id",
+ "NODE_LIST":"Tag list By Node ID"
}
}
diff --git a/ng2-components/ng2-alfresco-viewer/index.ts b/ng2-components/ng2-alfresco-viewer/index.ts
index ecad9dd17e..c6f2c11686 100644
--- a/ng2-components/ng2-alfresco-viewer/index.ts
+++ b/ng2-components/ng2-alfresco-viewer/index.ts
@@ -16,8 +16,7 @@
*/
import { NgModule } from '@angular/core';
-import { CoreModule } from 'ng2-alfresco-core';
-
+import { CoreModule, TRANSLATION_PROVIDER } from 'ng2-alfresco-core';
import { MaterialModule } from './src/material.module';
export { ViewerComponent } from './src/components/viewer.component';
@@ -49,11 +48,20 @@ export function declarations() {
],
declarations: declarations(),
providers: [
- RenderingQueueServices
+ RenderingQueueServices,
+ {
+ provide: TRANSLATION_PROVIDER,
+ multi: true,
+ useValue: {
+ name: 'ng2-alfresco-viewer',
+ source: 'assets/ng2-alfresco-viewer'
+ }
+ }
],
exports: [
MaterialModule,
...declarations()
]
})
-export class ViewerModule {}
+export class ViewerModule {
+}
diff --git a/ng2-components/ng2-alfresco-viewer/src/components/unknown-format/unknown-format.component.html b/ng2-components/ng2-alfresco-viewer/src/components/unknown-format/unknown-format.component.html
index 74de545144..86547bd4cc 100644
--- a/ng2-components/ng2-alfresco-viewer/src/components/unknown-format/unknown-format.component.html
+++ b/ng2-components/ng2-alfresco-viewer/src/components/unknown-format/unknown-format.component.html
@@ -1,6 +1,6 @@
diff --git a/ng2-components/ng2-alfresco-viewer/src/i18n/en.json b/ng2-components/ng2-alfresco-viewer/src/i18n/en.json
index 0db3279e44..9fec03f441 100644
--- a/ng2-components/ng2-alfresco-viewer/src/i18n/en.json
+++ b/ng2-components/ng2-alfresco-viewer/src/i18n/en.json
@@ -1,3 +1,5 @@
{
-
+ "VIEWER": {
+ "UNKNOWN": "Document preview could not be loaded"
+ }
}
diff --git a/ng2-components/ng2-alfresco-webscript/index.ts b/ng2-components/ng2-alfresco-webscript/index.ts
index f56acb06f9..fe50ba288e 100644
--- a/ng2-components/ng2-alfresco-webscript/index.ts
+++ b/ng2-components/ng2-alfresco-webscript/index.ts
@@ -16,7 +16,7 @@
*/
import { NgModule } from '@angular/core';
-import { CoreModule } from 'ng2-alfresco-core';
+import { CoreModule, TRANSLATION_PROVIDER } from 'ng2-alfresco-core';
import { DataTableModule } from 'ng2-alfresco-datatable';
import { WebscriptComponent } from './src/webscript.component';
@@ -30,6 +30,16 @@ export { WebscriptComponent } from './src/webscript.component';
declarations: [
WebscriptComponent
],
+ providers: [
+ {
+ provide: TRANSLATION_PROVIDER,
+ multi: true,
+ useValue: {
+ name: 'ng2-alfresco-webscript',
+ source: 'assets/ng2-alfresco-webscript'
+ }
+ }
+ ],
exports: [
WebscriptComponent
]
diff --git a/ng2-components/ng2-alfresco-webscript/src/i18n/en.json b/ng2-components/ng2-alfresco-webscript/src/i18n/en.json
index 0db3279e44..ff00d02fdf 100644
--- a/ng2-components/ng2-alfresco-webscript/src/i18n/en.json
+++ b/ng2-components/ng2-alfresco-webscript/src/i18n/en.json
@@ -1,3 +1,5 @@
{
-
+ "WEBSCRIPT": {
+ "ERROR": "Error during the deserialization of {{data}} as {{contentType}}"
+ }
}
diff --git a/ng2-components/ng2-alfresco-webscript/src/webscript.component.html b/ng2-components/ng2-alfresco-webscript/src/webscript.component.html
new file mode 100644
index 0000000000..3643b1cfda
--- /dev/null
+++ b/ng2-components/ng2-alfresco-webscript/src/webscript.component.html
@@ -0,0 +1,16 @@
+
+
{{data | json}}
+
+
{{data}}
+
+
+
+
{{'WEBSCRIPT.ERROR' | translate: {
+ data: data,
+ contentType: contentType
+ }
+ }}
+
+
+
+
diff --git a/ng2-components/ng2-alfresco-webscript/src/webscript.component.ts b/ng2-components/ng2-alfresco-webscript/src/webscript.component.ts
index 30bf7be736..27a5493cc1 100644
--- a/ng2-components/ng2-alfresco-webscript/src/webscript.component.ts
+++ b/ng2-components/ng2-alfresco-webscript/src/webscript.component.ts
@@ -42,15 +42,7 @@ import { ObjectDataTableAdapter } from 'ng2-alfresco-datatable';
*/
@Component({
selector: 'adf-webscript-get, alfresco-webscript-get',
- template: `
-
-
{{data | json}}
-
-
{{data}}
-
-
Error during the deserialization of {{data}} as {{contentType}}
-
- `
+ templateUrl: 'webscript.component.html'
})
export class WebscriptComponent implements OnChanges {