Skip to content

Commit

Permalink
chore: dedupe lang folder
Browse files Browse the repository at this point in the history
  • Loading branch information
leaftail1880 committed Jul 3, 2024
1 parent d045f37 commit 585ce6e
Show file tree
Hide file tree
Showing 9 changed files with 164 additions and 2,903 deletions.
6 changes: 4 additions & 2 deletions apps/postybirb-ui/src/app/app-i18n-provider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,14 @@ export function AppI18nProvider(props: AppI18nProviderProps) {
// because browser's import call does it automatically
// eslint-disable-next-line no-param-reassign
locale = locale ?? 'en';
const { messages } = await import(`../lang/${locale}.po`);
const { messages } = await import(`../../../../lang/${locale}.po`);

const uppyLocale = uppyLocales[locale];
try {
i18n.uppy = (
await import(`../../public/uppy-i18n/${uppyLocale}.js`)
await import(
`../../../../node_modules/@uppy/locales/lib/${uppyLocale}.js`
)
).default;
} catch (error) {
// eslint-disable-next-line no-console
Expand Down
Loading

0 comments on commit 585ce6e

Please sign in to comment.