Skip to content

Commit 3ff7d98

Browse files
authored
- fix: analytics i18n loaded before that i18next (#377)
1 parent 0bc1228 commit 3ff7d98

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

apps/shinkai-desktop/src/constants/analytics.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { t } from '@shinkai_network/shinkai-i18n';
22

3-
export const analyticsBulletPoints = [
3+
export const analyticsBulletPoints = () => [
44
t('analytics.bulletPoints.one'),
55
t('analytics.bulletPoints.two'),
66
t('analytics.bulletPoints.three'),

apps/shinkai-desktop/src/pages/analytics-settings.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const AnalyticsSettingsPage = () => {
1717
<p className="font-medium">{t('analytics.title')}</p>
1818
<div className="mt-10 flex flex-1 flex-col gap-10 text-sm text-gray-50">
1919
<ul className="space-y-5 text-gray-50">
20-
{analyticsBulletPoints.map((item) => (
20+
{analyticsBulletPoints().map((item) => (
2121
<li key={item}>{item}</li>
2222
))}
2323
</ul>

apps/shinkai-desktop/src/pages/analytics.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const AnalyticsPage = () => {
2020
</p>
2121
<div className="mt-10 flex flex-1 flex-col gap-10 text-sm text-gray-50">
2222
<ul className="space-y-3 text-gray-50">
23-
{analyticsBulletPoints.map((item) => (
23+
{analyticsBulletPoints().map((item) => (
2424
<li key={item}>{item}</li>
2525
))}
2626
</ul>

0 commit comments

Comments
 (0)