Skip to content

Commit

Permalink
Changed the language load to use a directory for each supported langu…
Browse files Browse the repository at this point in the history
…age [comixed#305]
  • Loading branch information
mcpierce committed Jun 10, 2020
1 parent 83b3390 commit bbb06f6
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions comixed-frontend/src/app/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -171,12 +171,12 @@ export class AppModule {}

export function HttpLoaderFactory(http: HttpClient) {
return new MultiTranslateHttpLoader(http, [
{ prefix: './assets/i18n/common-', suffix: '.json' },
{ prefix: './assets/i18n/app-', suffix: '.json' },
{ prefix: './assets/i18n/comics-', suffix: '.json' },
{ prefix: './assets/i18n/library-', suffix: '.json' },
{ prefix: './assets/i18n/comic-import-', suffix: '.json' },
{ prefix: './assets/i18n/backend-status-', suffix: '.json' },
{ prefix: './assets/i18n/user-', suffix: '.json' }
{ prefix: './assets/i18n/', suffix: '/common.json' },
{ prefix: './assets/i18n/', suffix: '/app.json' },
{ prefix: './assets/i18n/', suffix: '/comics.json' },
{ prefix: './assets/i18n/', suffix: '/library.json' },
{ prefix: './assets/i18n/', suffix: '/comic-import.json' },
{ prefix: './assets/i18n/', suffix: '/backend-status.json' },
{ prefix: './assets/i18n/', suffix: '/user.json' }
]);
}

0 comments on commit bbb06f6

Please sign in to comment.