22
33exports [` Compiles attribute values > compiles attribute values 1` ] = `
44"import { ReplexicaServerProxy as _ReplexicaServerProxy } from "@replexica/react/server";
5+ import { loadLocaleData as _loadLocaleData } from "@replexica/react/next";
6+ import { loadLocaleFromCookie as _loadLocaleFromCookie } from "@replexica/react/next";
57import { ReplexicaServerChunk as _ReplexicaServerChunk } from "@replexica/react/server";
68<div >
79 <_ReplexicaServerProxy title = " Hello!" _ReplexicaComponent = " span" _ReplexicaAttributes = { {
@@ -10,62 +12,76 @@ import { ReplexicaServerChunk as _ReplexicaServerChunk } from "@replexica/react/
1012 " scopeId" : " scopeId_1" ,
1113 " chunkId" : " chunkId_1"
1214 }
13- }} > <_ReplexicaServerChunk fileId = " fileId_0" scopeId = " scopeId_0" chunkId = " chunkId_0" importer = { locale => import (\` ./.. /../i18n/\$ { locale } .json\` ).then(m => m.default )} /></_ReplexicaServerProxy>
15+ }} loadLocale = { _loadLocaleFromCookie } loadLocaleData = { locale => import (\ ` ../../i18n/ \$ { locale } .json \` )}> <_ReplexicaServerChunk fileId = " fileId_0" scopeId = " scopeId_0" chunkId = " chunkId_0" loadLocale = { _loadLocaleFromCookie } loadLocaleData = { locale => import (\` .. /../i18n/\$ { locale } .json\` )} /></_ReplexicaServerProxy>
1416</div>;"
1517` ;
1618
1719exports [` Compiles content > jsx assigned to jsx attribute 1` ] = `
18- "import { ReplexicaServerChunk as _ReplexicaServerChunk } from "@replexica/react/server";
20+ "import { loadLocaleData as _loadLocaleData } from "@replexica/react/next";
21+ import { loadLocaleFromCookie as _loadLocaleFromCookie } from "@replexica/react/next";
22+ import { ReplexicaServerChunk as _ReplexicaServerChunk } from "@replexica/react/server";
1923<div >
20- <div data-test = { <span ><_ReplexicaServerChunk fileId = " fileId_0" scopeId = " scopeId_1" chunkId = " chunkId_1" importer = { locale => import (\` ./.. /../i18n/\$ { locale } .json\` ).then(m => m.default) } /></span>}><_ReplexicaServerChunk fileId = " fileId_0" scopeId = " scopeId_0" chunkId = " chunkId_0" importer = { locale => import (\` ./.. /../i18n/\$ { locale } .json\` ).then(m => m.default )} /></div>
24+ <div data-test = { <span ><_ReplexicaServerChunk fileId = " fileId_0" scopeId = " scopeId_1" chunkId = " chunkId_1" loadLocale = { _loadLocaleFromCookie } loadLocaleData = { locale => import (\` .. /../i18n/\$ { locale } .json\` )} /></span>}><_ReplexicaServerChunk fileId = " fileId_0" scopeId = " scopeId_0" chunkId = " chunkId_0" loadLocale = { _loadLocaleFromCookie } loadLocaleData = { locale => import (\` .. /../i18n/\$ { locale } .json\` )} /></div>
2125</div>;"
2226` ;
2327
2428exports [` Compiles content > multiple basic spans 1` ] = `
25- "import { ReplexicaServerChunk as _ReplexicaServerChunk } from "@replexica/react/server";
29+ "import { loadLocaleData as _loadLocaleData } from "@replexica/react/next";
30+ import { loadLocaleFromCookie as _loadLocaleFromCookie } from "@replexica/react/next";
31+ import { ReplexicaServerChunk as _ReplexicaServerChunk } from "@replexica/react/server";
2632<div >
27- <span ><_ReplexicaServerChunk fileId = " fileId_0" scopeId = " scopeId_0" chunkId = " chunkId_0" importer = { locale => import (\` ./.. /../i18n/\$ { locale } .json\` ).then(m => m.default )} /></span>
28- <span ><_ReplexicaServerChunk fileId = " fileId_0" scopeId = " scopeId_1" chunkId = " chunkId_1" importer = { locale => import (\` ./.. /../i18n/\$ { locale } .json\` ).then(m => m.default )} /></span>
33+ <span ><_ReplexicaServerChunk fileId = " fileId_0" scopeId = " scopeId_0" chunkId = " chunkId_0" loadLocale = { _loadLocaleFromCookie } loadLocaleData = { locale => import (\` .. /../i18n/\$ { locale } .json\` )} /></span>
34+ <span ><_ReplexicaServerChunk fileId = " fileId_0" scopeId = " scopeId_1" chunkId = " chunkId_1" loadLocale = { _loadLocaleFromCookie } loadLocaleData = { locale => import (\` .. /../i18n/\$ { locale } .json\` )} /></span>
2935</div>;"
3036` ;
3137
3238exports [` Compiles content > nested basic spans 1` ] = `
33- "import { ReplexicaServerChunk as _ReplexicaServerChunk } from "@replexica/react/server";
39+ "import { loadLocaleData as _loadLocaleData } from "@replexica/react/next";
40+ import { loadLocaleFromCookie as _loadLocaleFromCookie } from "@replexica/react/next";
41+ import { ReplexicaServerChunk as _ReplexicaServerChunk } from "@replexica/react/server";
3442<div >
35- <span ><_ReplexicaServerChunk fileId = " fileId_0" scopeId = " scopeId_0" chunkId = " chunkId_0" importer = { locale => import (\` ./.. /../i18n/\$ { locale } .json\` ).then(m => m.default )} /></span>
43+ <span ><_ReplexicaServerChunk fileId = " fileId_0" scopeId = " scopeId_0" chunkId = " chunkId_0" loadLocale = { _loadLocaleFromCookie } loadLocaleData = { locale => import (\` .. /../i18n/\$ { locale } .json\` )} /></span>
3644 <div >
37- <span ><_ReplexicaServerChunk fileId = " fileId_0" scopeId = " scopeId_1" chunkId = " chunkId_1" importer = { locale => import (\` ./.. /../i18n/\$ { locale } .json\` ).then(m => m.default )} /></span>
45+ <span ><_ReplexicaServerChunk fileId = " fileId_0" scopeId = " scopeId_1" chunkId = " chunkId_1" loadLocale = { _loadLocaleFromCookie } loadLocaleData = { locale => import (\` .. /../i18n/\$ { locale } .json\` )} /></span>
3846 </div>
3947</div>;"
4048` ;
4149
4250exports [` Compiles content > nested elements mixed with text 1` ] = `
43- "import { ReplexicaServerChunk as _ReplexicaServerChunk } from "@replexica/react/server";
51+ "import { loadLocaleData as _loadLocaleData } from "@replexica/react/next";
52+ import { loadLocaleFromCookie as _loadLocaleFromCookie } from "@replexica/react/next";
53+ import { ReplexicaServerChunk as _ReplexicaServerChunk } from "@replexica/react/server";
4454<div >
45- <span ><_ReplexicaServerChunk fileId = " fileId_0" scopeId = " scopeId_0" chunkId = " chunkId_0" importer = { locale => import (\` ./.. /../i18n/\$ { locale } .json\` ).then(m => m.default )} /></span>
46- <div><_ReplexicaServerChunk fileId="fileId_0" scopeId="scopeId_1" chunkId="chunkId_1" importer={locale => import(\`./../../i18n/\${locale}.json\`).then(m => m.default)} /><br /><_ReplexicaServerChunk fileId="fileId_0" scopeId="scopeId_1" chunkId="chunkId_2" importer={locale => import(\`./../../i18n/\${locale}.json\`).then(m => m.default)} /><b><_ReplexicaServerChunk fileId="fileId_0" scopeId="scopeId_1" chunkId="chunkId_3" importer={locale => import(\`./../../i18n/\${locale}.json\`).then(m => m.default)} /></b><_ReplexicaServerChunk fileId="fileId_0" scopeId="scopeId_1" chunkId="chunkId_4" importer={locale => import(\`./../../i18n/\${locale}.json\`).then(m => m.default)} /><a href="#"><_ReplexicaServerChunk fileId="fileId_0" scopeId="scopeId_1" chunkId="chunkId_5" importer={locale => import(\`./../../i18n/\${locale}.json\`).then(m => m.default)} /></a><_ReplexicaServerChunk fileId="fileId_0" scopeId="scopeId_1" chunkId="chunkId_6" importer={locale => import(\`./../../i18n/\${locale}.json\`).then(m => m.default)} /></div>
55+ <span ><_ReplexicaServerChunk fileId = " fileId_0" scopeId = " scopeId_0" chunkId = " chunkId_0" loadLocale = { _loadLocaleFromCookie } loadLocaleData = { locale => import (\` .. /../i18n/\$ { locale } .json\` )} /></span>
56+ <div><_ReplexicaServerChunk fileId="fileId_0" scopeId="scopeId_1" chunkId="chunkId_1" loadLocale={_loadLocaleFromCookie} loadLocaleData={locale => import(\`../../i18n/\${locale}.json\`)} /><br /><_ReplexicaServerChunk fileId="fileId_0" scopeId="scopeId_1" chunkId="chunkId_2" loadLocale={_loadLocaleFromCookie} loadLocaleData={locale => import(\`../../i18n/\${locale}.json\`)} /><b><_ReplexicaServerChunk fileId="fileId_0" scopeId="scopeId_1" chunkId="chunkId_3" loadLocale={_loadLocaleFromCookie} loadLocaleData={locale => import(\`../../i18n/\${locale}.json\`)} /></b><_ReplexicaServerChunk fileId="fileId_0" scopeId="scopeId_1" chunkId="chunkId_4" loadLocale={_loadLocaleFromCookie} loadLocaleData={locale => import(\`../../i18n/\${locale}.json\`)} /><a href="#"><_ReplexicaServerChunk fileId="fileId_0" scopeId="scopeId_1" chunkId="chunkId_5" loadLocale={_loadLocaleFromCookie} loadLocaleData={locale => import(\`../../i18n/\${locale}.json\`)} /></a><_ReplexicaServerChunk fileId="fileId_0" scopeId="scopeId_1" chunkId="chunkId_6" loadLocale={_loadLocaleFromCookie} loadLocaleData={locale => import(\`../../i18n/\${locale}.json\`)} /></div>
4757</div>;"
4858` ;
4959
5060exports [` Compiles content > one basic span 1` ] = `
51- "import { ReplexicaServerChunk as _ReplexicaServerChunk } from "@replexica/react/server";
52- <span ><_ReplexicaServerChunk fileId = " fileId_0" scopeId = " scopeId_0" chunkId = " chunkId_0" importer = { locale => import (\` ./../../i18n/\$ { locale } .json\` ).then(m => m.default)} /></span>;"
61+ "import { loadLocaleData as _loadLocaleData } from "@replexica/react/next";
62+ import { loadLocaleFromCookie as _loadLocaleFromCookie } from "@replexica/react/next";
63+ import { ReplexicaServerChunk as _ReplexicaServerChunk } from "@replexica/react/server";
64+ <span ><_ReplexicaServerChunk fileId = " fileId_0" scopeId = " scopeId_0" chunkId = " chunkId_0" loadLocale = { _loadLocaleFromCookie } loadLocaleData = { locale => import (\` ../../i18n/\$ { locale } .json\` )} /></span>;"
5365` ;
5466
5567exports [` Skips nodes marked with \` data-replexica-skip\` > skips a single node 1` ] = `
56- "import { ReplexicaServerChunk as _ReplexicaServerChunk } from "@replexica/react/server";
68+ "import { loadLocaleData as _loadLocaleData } from "@replexica/react/next";
69+ import { loadLocaleFromCookie as _loadLocaleFromCookie } from "@replexica/react/next";
70+ import { ReplexicaServerChunk as _ReplexicaServerChunk } from "@replexica/react/server";
5771<div >
58- <span ><_ReplexicaServerChunk fileId = " fileId_0" scopeId = " scopeId_0" chunkId = " chunkId_0" importer = { locale => import (\` ./.. /../i18n/\$ { locale } .json\` ).then(m => m.default )} /></span>
72+ <span ><_ReplexicaServerChunk fileId = " fileId_0" scopeId = " scopeId_0" chunkId = " chunkId_0" loadLocale = { _loadLocaleFromCookie } loadLocaleData = { locale => import (\` .. /../i18n/\$ { locale } .json\` )} /></span>
5973 <div data-replexica-skip >
6074 Goodbye, world!
6175 </div >
6276</div>;"
6377` ;
6478
6579exports [` Skips nodes marked with \` data-replexica-skip\` > skips entire subtree 1` ] = `
66- "import { ReplexicaServerChunk as _ReplexicaServerChunk } from "@replexica/react/server";
80+ "import { loadLocaleData as _loadLocaleData } from "@replexica/react/next";
81+ import { loadLocaleFromCookie as _loadLocaleFromCookie } from "@replexica/react/next";
82+ import { ReplexicaServerChunk as _ReplexicaServerChunk } from "@replexica/react/server";
6783<div >
68- <span ><_ReplexicaServerChunk fileId = " fileId_0" scopeId = " scopeId_0" chunkId = " chunkId_0" importer = { locale => import (\` ./.. /../i18n/\$ { locale } .json\` ).then(m => m.default )} /></span>
84+ <span ><_ReplexicaServerChunk fileId = " fileId_0" scopeId = " scopeId_0" chunkId = " chunkId_0" loadLocale = { _loadLocaleFromCookie } loadLocaleData = { locale => import (\` .. /../i18n/\$ { locale } .json\` )} /></span>
6985 <div data-replexica-skip >
7086 Goodbye, world!
7187 <br />
0 commit comments