Skip to content

Commit

Permalink
Windows build fix (#159)
Browse files Browse the repository at this point in the history
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
  • Loading branch information
jakolehm authored Mar 26, 2020
1 parent d7c22c8 commit 4ead24b
Show file tree
Hide file tree
Showing 10 changed files with 206 additions and 205 deletions.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ test-dashboard: dashboard-deps
cd dashboard && yarn test

build-dashboard: dashboard-deps clean-dashboard
export NODE_ENV=production
cd dashboard && yarn build

clean:
Expand Down
1 change: 0 additions & 1 deletion dashboard/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,3 @@ dump.rdb
/tslint.json
*.DS_Store
locales/_build/
locales/**/*.js
4 changes: 2 additions & 2 deletions dashboard/client/i18n.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export class LocalizationStore {
async load(locale: string) {
const catalog = await import(
/* webpackMode: "lazy", webpackChunkName: "locale/[request]" */
`@lingui/loader!../locales/${locale}/messages.po`
`../locales/${locale}/messages.js`
);
return _i18n.load(locale, catalog);
}
Expand All @@ -59,4 +59,4 @@ export class LocalizationStore {
}
}

export const i18nStore = new LocalizationStore();
export const i18nStore = new LocalizationStore();
1 change: 1 addition & 0 deletions dashboard/locales/en/messages.js

Large diffs are not rendered by default.

Loading

0 comments on commit 4ead24b

Please # to comment.