Skip to content

Commit

Permalink
- fix: analytics i18n loaded before that i18next (#377)
Browse files Browse the repository at this point in the history
  • Loading branch information
agallardol authored Jul 18, 2024
1 parent 0bc1228 commit 3ff7d98
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion apps/shinkai-desktop/src/constants/analytics.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { t } from '@shinkai_network/shinkai-i18n';

export const analyticsBulletPoints = [
export const analyticsBulletPoints = () => [
t('analytics.bulletPoints.one'),
t('analytics.bulletPoints.two'),
t('analytics.bulletPoints.three'),
Expand Down
2 changes: 1 addition & 1 deletion apps/shinkai-desktop/src/pages/analytics-settings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const AnalyticsSettingsPage = () => {
<p className="font-medium">{t('analytics.title')}</p>
<div className="mt-10 flex flex-1 flex-col gap-10 text-sm text-gray-50">
<ul className="space-y-5 text-gray-50">
{analyticsBulletPoints.map((item) => (
{analyticsBulletPoints().map((item) => (
<li key={item}>{item}</li>
))}
</ul>
Expand Down
2 changes: 1 addition & 1 deletion apps/shinkai-desktop/src/pages/analytics.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const AnalyticsPage = () => {
</p>
<div className="mt-10 flex flex-1 flex-col gap-10 text-sm text-gray-50">
<ul className="space-y-3 text-gray-50">
{analyticsBulletPoints.map((item) => (
{analyticsBulletPoints().map((item) => (
<li key={item}>{item}</li>
))}
</ul>
Expand Down

0 comments on commit 3ff7d98

Please sign in to comment.