Skip to content

Commit

Permalink
feat: update next-intl support (#3342)
Browse files Browse the repository at this point in the history
  • Loading branch information
stepan662 authored Jun 3, 2024
1 parent 51da785 commit 99c2190
Show file tree
Hide file tree
Showing 13 changed files with 214 additions and 192 deletions.
4 changes: 2 additions & 2 deletions packages/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@
"jest": "~27.5.1",
"jest-environment-jsdom": "~27.5.1",
"jest-fetch-mock": "^3.0.3",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"reflect-metadata": "^0.1.13",
"regenerator-runtime": "^0.13.3",
"rollup": "2.78.1",
Expand Down
4 changes: 2 additions & 2 deletions packages/react/src/createServerInstance.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { TolgeeInstance } from '@tolgee/web';

export type CreateServerInstanceOptions = {
createTolgee: (locale: string) => Promise<TolgeeInstance>;
getLocale: () => string;
getLocale: () => Promise<string>;
};

export const createServerInstance = ({
Expand All @@ -23,7 +23,7 @@ export const createServerInstance = ({
}) as (locale: string) => Promise<TolgeeInstance>;

const getTolgee = async () => {
const locale = getLocale();
const locale = await getLocale();
const tolgee = await getTolgeeInstance(locale);
return tolgee;
};
Expand Down
4 changes: 2 additions & 2 deletions packages/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@
"fast-text-encoding": "^1.0.6",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-query": "^3.39.3",
"rollup": "^4.14.0",
"rollup-plugin-terser": "7.0.2",
Expand Down
Loading

0 comments on commit 99c2190

Please sign in to comment.