Skip to content

Commit

Permalink
Fix critical dependency issue (#72)
Browse files Browse the repository at this point in the history
* Compile tsx file

* Update tests
  • Loading branch information
bluelakee02 authored Oct 14, 2023
1 parent 7977c9a commit e26c934
Show file tree
Hide file tree
Showing 5 changed files with 118 additions and 103 deletions.
76 changes: 38 additions & 38 deletions __tests__/__snapshots__/templateAppDir.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export default async function __Next_Translate_new__88d9831a00__(props) {
const { __lang, __namespaces } = await __loadNamespaces({
...config,
loadLocaleFrom:
__i18nConfig.loadLocaleFrom ||
(__i18nConfig && __i18nConfig.loadLocaleFrom) ||
((l, n) =>
import(\`@next-translate-root/locales/\${l}/\${n}\`).then(
(m) => m.default
Expand Down Expand Up @@ -83,7 +83,7 @@ export default async function __Next_Translate_new__88d9831a00__(props) {
const { __lang, __namespaces } = await __loadNamespaces({
...config,
loadLocaleFrom:
__i18nConfig.loadLocaleFrom ||
(__i18nConfig && __i18nConfig.loadLocaleFrom) ||
((l, n) =>
import(\`@next-translate-root/locales/\${l}/\${n}\`).then(
(m) => m.default
Expand Down Expand Up @@ -137,7 +137,7 @@ export default async function __Next_Translate_new__88d9831a00__(props) {
const { __lang, __namespaces } = await __loadNamespaces({
...config,
loadLocaleFrom:
__i18nConfig.loadLocaleFrom ||
(__i18nConfig && __i18nConfig.loadLocaleFrom) ||
((l, n) =>
import(\`@next-translate-root/locales/\${l}/\${n}\`).then(
(m) => m.default
Expand Down Expand Up @@ -191,7 +191,7 @@ export default async function __Next_Translate_new__88d9831a00__(props) {
const { __lang, __namespaces } = await __loadNamespaces({
...config,
loadLocaleFrom:
__i18nConfig.loadLocaleFrom ||
(__i18nConfig && __i18nConfig.loadLocaleFrom) ||
((l, n) =>
import(\`@next-translate-root/locales/\${l}/\${n}\`).then(
(m) => m.default
Expand Down Expand Up @@ -245,7 +245,7 @@ export default async function __Next_Translate_new__88d9831a00__(props) {
const { __lang, __namespaces } = await __loadNamespaces({
...config,
loadLocaleFrom:
__i18nConfig.loadLocaleFrom ||
(__i18nConfig && __i18nConfig.loadLocaleFrom) ||
((l, n) =>
import(\`@next-translate-root/locales/\${l}/\${n}\`).then(
(m) => m.default
Expand Down Expand Up @@ -299,7 +299,7 @@ export default async function __Next_Translate_new__88d9831a00__(props) {
const { __lang, __namespaces } = await __loadNamespaces({
...config,
loadLocaleFrom:
__i18nConfig.loadLocaleFrom ||
(__i18nConfig && __i18nConfig.loadLocaleFrom) ||
((l, n) =>
import(\`@next-translate-root/locales/\${l}/\${n}\`).then(
(m) => m.default
Expand Down Expand Up @@ -353,7 +353,7 @@ export default async function __Next_Translate_new__88d9831a00__(props) {
const { __lang, __namespaces } = await __loadNamespaces({
...config,
loadLocaleFrom:
__i18nConfig.loadLocaleFrom ||
(__i18nConfig && __i18nConfig.loadLocaleFrom) ||
((l, n) =>
import(\`@next-translate-root/locales/\${l}/\${n}\`).then(
(m) => m.default
Expand Down Expand Up @@ -407,7 +407,7 @@ export default async function __Next_Translate_new__88d9831a00__(props) {
const { __lang, __namespaces } = await __loadNamespaces({
...config,
loadLocaleFrom:
__i18nConfig.loadLocaleFrom ||
(__i18nConfig && __i18nConfig.loadLocaleFrom) ||
((l, n) =>
import(\`@next-translate-root/locales/\${l}/\${n}\`).then(
(m) => m.default
Expand Down Expand Up @@ -461,7 +461,7 @@ export default async function __Next_Translate_new__88d9831a00__(props) {
const { __lang, __namespaces } = await __loadNamespaces({
...config,
loadLocaleFrom:
__i18nConfig.loadLocaleFrom ||
(__i18nConfig && __i18nConfig.loadLocaleFrom) ||
((l, n) =>
import(\`@next-translate-root/locales/\${l}/\${n}\`).then(
(m) => m.default
Expand Down Expand Up @@ -515,7 +515,7 @@ export default async function __Next_Translate_new__88d9831a00__(props) {
const { __lang, __namespaces } = await __loadNamespaces({
...config,
loadLocaleFrom:
__i18nConfig.loadLocaleFrom ||
(__i18nConfig && __i18nConfig.loadLocaleFrom) ||
((l, n) =>
import(\`@next-translate-root/locales/\${l}/\${n}\`).then(
(m) => m.default
Expand Down Expand Up @@ -569,7 +569,7 @@ export default async function __Next_Translate_new__88d9831a00__(props) {
const { __lang, __namespaces } = await __loadNamespaces({
...config,
loadLocaleFrom:
__i18nConfig.loadLocaleFrom ||
(__i18nConfig && __i18nConfig.loadLocaleFrom) ||
((l, n) =>
import(\`@next-translate-root/locales/\${l}/\${n}\`).then(
(m) => m.default
Expand Down Expand Up @@ -623,7 +623,7 @@ export default async function __Next_Translate_new__88d9831a00__(props) {
const { __lang, __namespaces } = await __loadNamespaces({
...config,
loadLocaleFrom:
__i18nConfig.loadLocaleFrom ||
(__i18nConfig && __i18nConfig.loadLocaleFrom) ||
((l, n) =>
import(\`@next-translate-root/locales/\${l}/\${n}\`).then(
(m) => m.default
Expand Down Expand Up @@ -677,7 +677,7 @@ export default async function __Next_Translate_new__88d9831a00__(props) {
const { __lang, __namespaces } = await __loadNamespaces({
...config,
loadLocaleFrom:
__i18nConfig.loadLocaleFrom ||
(__i18nConfig && __i18nConfig.loadLocaleFrom) ||
((l, n) =>
import(\`@next-translate-root/locales/\${l}/\${n}\`).then(
(m) => m.default
Expand Down Expand Up @@ -731,7 +731,7 @@ export default async function __Next_Translate_new__88d9831a00__(props) {
const { __lang, __namespaces } = await __loadNamespaces({
...config,
loadLocaleFrom:
__i18nConfig.loadLocaleFrom ||
(__i18nConfig && __i18nConfig.loadLocaleFrom) ||
((l, n) =>
import(\`@next-translate-root/locales/\${l}/\${n}\`).then(
(m) => m.default
Expand Down Expand Up @@ -785,7 +785,7 @@ export default async function __Next_Translate_new__88d9831a00__(props) {
const { __lang, __namespaces } = await __loadNamespaces({
...config,
loadLocaleFrom:
__i18nConfig.loadLocaleFrom ||
(__i18nConfig && __i18nConfig.loadLocaleFrom) ||
((l, n) =>
import(\`@next-translate-root/locales/\${l}/\${n}\`).then(
(m) => m.default
Expand Down Expand Up @@ -839,7 +839,7 @@ export default async function __Next_Translate_new__88d9831a00__(props) {
const { __lang, __namespaces } = await __loadNamespaces({
...config,
loadLocaleFrom:
__i18nConfig.loadLocaleFrom ||
(__i18nConfig && __i18nConfig.loadLocaleFrom) ||
((l, n) =>
import(\`@next-translate-root/locales/\${l}/\${n}\`).then(
(m) => m.default
Expand Down Expand Up @@ -893,7 +893,7 @@ export default async function __Next_Translate_new__88d9831a00__(props) {
const { __lang, __namespaces } = await __loadNamespaces({
...config,
loadLocaleFrom:
__i18nConfig.loadLocaleFrom ||
(__i18nConfig && __i18nConfig.loadLocaleFrom) ||
((l, n) =>
import(\`@next-translate-root/locales/\${l}/\${n}\`).then(
(m) => m.default
Expand Down Expand Up @@ -947,7 +947,7 @@ export default async function __Next_Translate_new__88d9831a00__(props) {
const { __lang, __namespaces } = await __loadNamespaces({
...config,
loadLocaleFrom:
__i18nConfig.loadLocaleFrom ||
(__i18nConfig && __i18nConfig.loadLocaleFrom) ||
((l, n) =>
import(\`@next-translate-root/locales/\${l}/\${n}\`).then(
(m) => m.default
Expand Down Expand Up @@ -1001,7 +1001,7 @@ export default async function __Next_Translate_new__88d9831a00__(props) {
const { __lang, __namespaces } = await __loadNamespaces({
...config,
loadLocaleFrom:
__i18nConfig.loadLocaleFrom ||
(__i18nConfig && __i18nConfig.loadLocaleFrom) ||
((l, n) =>
import(\`@next-translate-root/locales/\${l}/\${n}\`).then(
(m) => m.default
Expand Down Expand Up @@ -1055,7 +1055,7 @@ export default async function __Next_Translate_new__88d9831a00__(props) {
const { __lang, __namespaces } = await __loadNamespaces({
...config,
loadLocaleFrom:
__i18nConfig.loadLocaleFrom ||
(__i18nConfig && __i18nConfig.loadLocaleFrom) ||
((l, n) =>
import(\`@next-translate-root/locales/\${l}/\${n}\`).then(
(m) => m.default
Expand Down Expand Up @@ -1107,7 +1107,7 @@ export default async function __Next_Translate_new__88d9831a00__(props) {
const { __lang, __namespaces } = await __loadNamespaces({
...config,
loadLocaleFrom:
__i18nConfig.loadLocaleFrom ||
(__i18nConfig && __i18nConfig.loadLocaleFrom) ||
((l, n) =>
import(\`@next-translate-root/locales/\${l}/\${n}\`).then(
(m) => m.default
Expand Down Expand Up @@ -1159,7 +1159,7 @@ export default async function __Next_Translate_new__88d9831a00__(props) {
const { __lang, __namespaces } = await __loadNamespaces({
...config,
loadLocaleFrom:
__i18nConfig.loadLocaleFrom ||
(__i18nConfig && __i18nConfig.loadLocaleFrom) ||
((l, n) =>
import(\`@next-translate-root/locales/\${l}/\${n}\`).then(
(m) => m.default
Expand Down Expand Up @@ -1211,7 +1211,7 @@ export default async function __Next_Translate_new__88d9831a00__(props) {
const { __lang, __namespaces } = await __loadNamespaces({
...config,
loadLocaleFrom:
__i18nConfig.loadLocaleFrom ||
(__i18nConfig && __i18nConfig.loadLocaleFrom) ||
((l, n) =>
import(\`@next-translate-root/locales/\${l}/\${n}\`).then(
(m) => m.default
Expand Down Expand Up @@ -1263,7 +1263,7 @@ export default async function __Next_Translate_new__88d9831a00__(props) {
const { __lang, __namespaces } = await __loadNamespaces({
...config,
loadLocaleFrom:
__i18nConfig.loadLocaleFrom ||
(__i18nConfig && __i18nConfig.loadLocaleFrom) ||
((l, n) =>
import(\`@next-translate-root/locales/\${l}/\${n}\`).then(
(m) => m.default
Expand Down Expand Up @@ -1315,7 +1315,7 @@ export default async function __Next_Translate_new__88d9831a00__(props) {
const { __lang, __namespaces } = await __loadNamespaces({
...config,
loadLocaleFrom:
__i18nConfig.loadLocaleFrom ||
(__i18nConfig && __i18nConfig.loadLocaleFrom) ||
((l, n) =>
import(\`@next-translate-root/locales/\${l}/\${n}\`).then(
(m) => m.default
Expand Down Expand Up @@ -1367,7 +1367,7 @@ export default async function __Next_Translate_new__88d9831a00__(props) {
const { __lang, __namespaces } = await __loadNamespaces({
...config,
loadLocaleFrom:
__i18nConfig.loadLocaleFrom ||
(__i18nConfig && __i18nConfig.loadLocaleFrom) ||
((l, n) =>
import(\`@next-translate-root/locales/\${l}/\${n}\`).then(
(m) => m.default
Expand Down Expand Up @@ -1419,7 +1419,7 @@ export default async function __Next_Translate_new__88d9831a00__(props) {
const { __lang, __namespaces } = await __loadNamespaces({
...config,
loadLocaleFrom:
__i18nConfig.loadLocaleFrom ||
(__i18nConfig && __i18nConfig.loadLocaleFrom) ||
((l, n) =>
import(\`@next-translate-root/locales/\${l}/\${n}\`).then(
(m) => m.default
Expand Down Expand Up @@ -1471,7 +1471,7 @@ export default async function __Next_Translate_new__88d9831a00__(props) {
const { __lang, __namespaces } = await __loadNamespaces({
...config,
loadLocaleFrom:
__i18nConfig.loadLocaleFrom ||
(__i18nConfig && __i18nConfig.loadLocaleFrom) ||
((l, n) =>
import(\`@next-translate-root/locales/\${l}/\${n}\`).then(
(m) => m.default
Expand Down Expand Up @@ -1522,7 +1522,7 @@ export default async function __Next_Translate_new__88d9831a00__(props) {
const { __lang, __namespaces } = await __loadNamespaces({
...config,
loadLocaleFrom:
__i18nConfig.loadLocaleFrom ||
(__i18nConfig && __i18nConfig.loadLocaleFrom) ||
((l, n) =>
import(\`@next-translate-root/locales/\${l}/\${n}\`).then(
(m) => m.default
Expand Down Expand Up @@ -1573,7 +1573,7 @@ export default async function __Next_Translate_new__88d9831a00__(props) {
const { __lang, __namespaces } = await __loadNamespaces({
...config,
loadLocaleFrom:
__i18nConfig.loadLocaleFrom ||
(__i18nConfig && __i18nConfig.loadLocaleFrom) ||
((l, n) =>
import(\`@next-translate-root/locales/\${l}/\${n}\`).then(
(m) => m.default
Expand Down Expand Up @@ -1624,7 +1624,7 @@ export default async function __Next_Translate_new__88d9831a00__(props) {
const { __lang, __namespaces } = await __loadNamespaces({
...config,
loadLocaleFrom:
__i18nConfig.loadLocaleFrom ||
(__i18nConfig && __i18nConfig.loadLocaleFrom) ||
((l, n) =>
import(\`@next-translate-root/locales/\${l}/\${n}\`).then(
(m) => m.default
Expand Down Expand Up @@ -1675,7 +1675,7 @@ export default async function __Next_Translate_new__88d9831a00__(props) {
const { __lang, __namespaces } = await __loadNamespaces({
...config,
loadLocaleFrom:
__i18nConfig.loadLocaleFrom ||
(__i18nConfig && __i18nConfig.loadLocaleFrom) ||
((l, n) =>
import(\`@next-translate-root/locales/\${l}/\${n}\`).then(
(m) => m.default
Expand Down Expand Up @@ -1781,7 +1781,7 @@ export default function __Next_Translate_new__88d9831a00__(props) {
promise={__loadNamespaces({
...config,
loadLocaleFrom:
__i18nConfig.loadLocaleFrom ||
(__i18nConfig && __i18nConfig.loadLocaleFrom) ||
((l, n) =>
import(\`@next-translate-root/locales/\${l}/\${n}\`).then(
(m) => m.default
Expand Down Expand Up @@ -1850,7 +1850,7 @@ export default function __Next_Translate_new__88d9831a00__(props) {
promise={__loadNamespaces({
...config,
loadLocaleFrom:
__i18nConfig.loadLocaleFrom ||
(__i18nConfig && __i18nConfig.loadLocaleFrom) ||
((l, n) =>
import(\`@next-translate-root/locales/\${l}/\${n}\`).then(
(m) => m.default
Expand Down Expand Up @@ -1919,7 +1919,7 @@ export default function __Next_Translate_new__88d9831a00__(props) {
promise={__loadNamespaces({
...config,
loadLocaleFrom:
__i18nConfig.loadLocaleFrom ||
(__i18nConfig && __i18nConfig.loadLocaleFrom) ||
((l, n) =>
import(\`@next-translate-root/locales/\${l}/\${n}\`).then(
(m) => m.default
Expand Down Expand Up @@ -2019,7 +2019,7 @@ export default function __Next_Translate_new__88d9831a00__(props) {
promise={__loadNamespaces({
...config,
loadLocaleFrom:
__i18nConfig.loadLocaleFrom ||
(__i18nConfig && __i18nConfig.loadLocaleFrom) ||
((l, n) =>
import(\`@next-translate-root/locales/\${l}/\${n}\`).then(
(m) => m.default
Expand Down Expand Up @@ -2083,7 +2083,7 @@ export default function __Next_Translate_new__88d9831a00__(props) {
promise={__loadNamespaces({
...config,
loadLocaleFrom:
__i18nConfig.loadLocaleFrom ||
(__i18nConfig && __i18nConfig.loadLocaleFrom) ||
((l, n) =>
import(\`@next-translate-root/locales/\${l}/\${n}\`).then(
(m) => m.default
Expand Down Expand Up @@ -2147,7 +2147,7 @@ export default function __Next_Translate_new__88d9831a00__(props) {
promise={__loadNamespaces({
...config,
loadLocaleFrom:
__i18nConfig.loadLocaleFrom ||
(__i18nConfig && __i18nConfig.loadLocaleFrom) ||
((l, n) =>
import(\`@next-translate-root/locales/\${l}/\${n}\`).then(
(m) => m.default
Expand Down
Loading

0 comments on commit e26c934

Please sign in to comment.