Skip to content

Commit

Permalink
Fix frontend build
Browse files Browse the repository at this point in the history
  • Loading branch information
aumetra committed Mar 25, 2024
1 parent 9f4e606 commit 3376ca6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
6 changes: 0 additions & 6 deletions kitsune-fe/src/i18n.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,8 @@ import { FluentBundle } from '@fluent/bundle';

import { createFluentVue } from 'fluent-vue';

import enCyberpunkMessages from './locales/en-cyberpunk.ftl';
import enMessages from './locales/en.ftl';

const enBundle = new FluentBundle('en');
enBundle.addResource(enMessages);

const enCyberpunkBundle = new FluentBundle('en-cyberpunk');
enCyberpunkBundle.addResource(enCyberpunkMessages);

const fluent = createFluentVue({
bundles: [enBundle],
Expand Down
4 changes: 4 additions & 0 deletions kitsune-fe/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ export default defineConfig({

baseDir: path.resolve('src'),
ftlDir: path.resolve('src/locales'),

getFtlPath(locale) {
return path.join('src/locales', `${locale}.ftl`);
},
}),
],
});

0 comments on commit 3376ca6

Please sign in to comment.