Skip to content

Commit

Permalink
ui: facet language translation
Browse files Browse the repository at this point in the history
* Adds facet language translation

Co-Authored-by: Bertrand Zuchuat <[email protected]>
  • Loading branch information
Garfield-fr committed Aug 9, 2019
1 parent a9050d3 commit 80b93aa
Show file tree
Hide file tree
Showing 12 changed files with 369 additions and 75 deletions.
82 changes: 24 additions & 58 deletions ui/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
"@angular/platform-browser": "~7.2.2",
"@angular/platform-browser-dynamic": "~7.2.2",
"@angular/router": "~7.2.2",
"@cospired/i18n-iso-languages": "^2.0.3",
"@ngx-translate/core": "^11.0.1",
"@ngx-translate/http-loader": "^4.0.0",
"angular-datatables": "^7.0.0",
Expand Down
4 changes: 3 additions & 1 deletion ui/src/app/core/core.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ import { ToastrModule } from 'ngx-toastr';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { TitlePipe } from './pipe/title.pipe';
import { OrganisationViewService } from './organisation/organisation-view.service';
import { TranslateLanguageService } from './translate/translate-language.service';

@NgModule({
declarations: [
Expand Down Expand Up @@ -69,7 +70,8 @@ import { OrganisationViewService } from './organisation/organisation-view.servic
PatronTypeTool,
ItemTypeTool,
UniqueValidator,
I18nPluralPipe
I18nPluralPipe,
TranslateLanguageService
],
exports: [
AlertsComponent
Expand Down
2 changes: 2 additions & 0 deletions ui/src/app/core/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,5 @@ export * from './utils';
export * from './alerts/alerts.service';
export * from './toastr-dialog/toastr-dialog.component';
export * from './pipe/title.pipe';
export * from './pipe/translate-language.pipe';
export * from './translate/translate-language.service';
13 changes: 0 additions & 13 deletions ui/src/app/core/manual-translations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,19 +31,6 @@ _('readingRoom');
_('readingroom');
_('publicaccess');

_('fre');
_('eng');
_('ger');
_('ita');
_('lat');
_('spa');
_('ara');
_('por');
_('rus');
_('heb');
_('jpn');
_('chi');
_('und');

_('patron');
_('librarian');
Expand Down
Loading

0 comments on commit 80b93aa

Please sign in to comment.