From 8fc2d54540b331ca6c763921ade9b0740239bb7f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adina=20=C8=9Aeudan?= Date: Wed, 14 Oct 2020 17:54:43 +0300 Subject: [PATCH] Added translations --- .../file-preview-screen.component.html | 23 +++++------ .../project-listing-screen.component.html | 16 ++++---- .../project-listing-screen.component.ts | 4 +- apps/red-ui/src/assets/i18n/en.json | 41 ++++++++++++++++++- apps/red-ui/src/assets/styles/red-button.scss | 2 +- 5 files changed, 61 insertions(+), 25 deletions(-) diff --git a/apps/red-ui/src/app/screens/file/file-preview-screen/file-preview-screen.component.html b/apps/red-ui/src/app/screens/file/file-preview-screen/file-preview-screen.component.html index 7e147c702..7dfc59cd2 100644 --- a/apps/red-ui/src/app/screens/file/file-preview-screen/file-preview-screen.component.html +++ b/apps/red-ui/src/app/screens/file/file-preview-screen/file-preview-screen.component.html @@ -47,8 +47,8 @@
-
- Quick Navigation +
@@ -80,8 +80,8 @@
-
- Annotations +
@@ -106,8 +106,8 @@
-
- Info +
@@ -126,25 +126,22 @@ -
- Added on +
{{appStateService.activeFile.added | date:'medium'}}
-
- Added by +
{{user.name}}
-
- Last modified on +
{{appStateService.activeFile.lastUpdated | date:'medium'}} diff --git a/apps/red-ui/src/app/screens/project-listing-screen/project-listing-screen.component.html b/apps/red-ui/src/app/screens/project-listing-screen/project-listing-screen.component.html index 6814cbc43..dbaaa3af2 100644 --- a/apps/red-ui/src/app/screens/project-listing-screen/project-listing-screen.component.html +++ b/apps/red-ui/src/app/screens/project-listing-screen/project-listing-screen.component.html @@ -10,20 +10,20 @@
-
+
- {{'projects.table-header.title.label'| translate:{ length: appStateService.allProjects?.length || 0 } }} + {{'project-listing.table-header.title.label'| translate:{ length: appStateService.allProjects?.length || 0 } }}
-
+
@@ -88,7 +88,7 @@
@@ -96,7 +96,7 @@
{{totalPages}}
-
Analyzed pages
+
@@ -104,7 +104,7 @@
240
-
Total people
+
@@ -112,7 +112,7 @@
diff --git a/apps/red-ui/src/app/screens/project-listing-screen/project-listing-screen.component.ts b/apps/red-ui/src/app/screens/project-listing-screen/project-listing-screen.component.ts index 8883bca28..c44752475 100644 --- a/apps/red-ui/src/app/screens/project-listing-screen/project-listing-screen.component.ts +++ b/apps/red-ui/src/app/screens/project-listing-screen/project-listing-screen.component.ts @@ -20,8 +20,8 @@ export class ProjectListingScreenComponent implements OnInit { public projectsChartData: DoughnutChartConfig [] = []; public documentsChartData: DoughnutChartConfig [] = []; public sortingOptions: SortingOption[] = [ - { label: 'projects.sorting.recent.label', order: 'desc', column: 'projectDate' }, - { label: 'projects.sorting.alphabetically.label', order: 'asc', column: 'project.projectName' } + { label: 'project-listing.sorting.recent.label', order: 'desc', column: 'projectDate' }, + { label: 'project-listing.sorting.alphabetically.label', order: 'asc', column: 'project.projectName' } ]; public sortingOption: SortingOption = this.sortingOptions[0]; diff --git a/apps/red-ui/src/assets/i18n/en.json b/apps/red-ui/src/assets/i18n/en.json index 8ef296db5..cd0ac6e98 100644 --- a/apps/red-ui/src/assets/i18n/en.json +++ b/apps/red-ui/src/assets/i18n/en.json @@ -133,7 +133,7 @@ "label": "Document" } }, - "projects": { + "project-listing": { "table-header": { "title": { "label": "{{length}} active projects" @@ -145,6 +145,22 @@ "label": "Recent" } }, + "stats": { + "analyzed-pages": { + "label": "Analyzed pages" + }, + "total-people": { + "label": "Total people" + }, + "charts": { + "projects": { + "label": "Projects" + }, + "total-documents": { + "label": "Total Documents" + } + } + }, "add-edit-dialog": { "header-new": { "label": "New Project" @@ -326,6 +342,29 @@ "view-toggle": { "label": "Redacted View" }, + "tabs": { + "quick-navigation": { + "label": "Quick Navigation" + }, + "annotations": { + "label": "Annotations" + }, + "info": { + "label": "Info", + "assign-reviewer": { + "label": "Assign reviewer" + }, + "added-on": { + "label": "Added on" + }, + "added-by": { + "label": "Added by" + }, + "last-modified-on": { + "label": "Last modified on" + } + } + }, "download": { "label": "Download", "dropdown": { diff --git a/apps/red-ui/src/assets/styles/red-button.scss b/apps/red-ui/src/assets/styles/red-button.scss index 901623023..b9749c218 100644 --- a/apps/red-ui/src/assets/styles/red-button.scss +++ b/apps/red-ui/src/assets/styles/red-button.scss @@ -1,4 +1,4 @@ -button { +button.mat-flat-button { font-family: Inter, sans-serif !important; font-weight: 400 !important; border-radius: 25px !important;