fix: i18n missing hardcoded strings in settings (#21424)
## What Two user-visible strings in the Settings area were never wrapped with Lingui, so they were excluded from i18n extraction and shipped untranslated regardless of the selected language: - **"Remote"** — the type chip shown for remote objects in **Settings → Data Model** (`SettingsItemTypeTag`) - **"Done"** — the confirm button of the fields configuration group rename input (`FieldsConfigurationGroupRenameInput`) ## Changes - Wrap the `Chip` `label` with the `t` macro in `SettingsItemTypeTag.tsx` (the `placeholder` / `placeholderColorSeed` props are intentionally left as-is — they drive the avatar initial and color hash, not display text). - Wrap the `Button` `title` with the existing `t` from `useLingui()` in `FieldsConfigurationGroupRenameInput.tsx`. - Add the corresponding source entries to `en.po` so Crowdin can propagate the translations to all supported locales. Both follow i18n patterns already used throughout the codebase — these two were simply missed. ## Screenshots Both components rendered via Storybook (source `en` locale) after the change — the strings now resolve through Lingui's `t` macro without breaking rendering:  ## How to test 1. Switch the workspace language to a non-English locale. 2. Go to **Settings → Data Model** with a remote object present → the type chip reads "Remote" translated. 3. Rename a fields configuration group → the confirm button reads "Done" translated. Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
+1
-1
@@ -68,7 +68,7 @@ export const FieldsConfigurationGroupRenameInput = ({
|
||||
variant="primary"
|
||||
accent="blue"
|
||||
size="small"
|
||||
title="Done"
|
||||
title={t`Done`}
|
||||
onClick={handleSave}
|
||||
/>
|
||||
</StyledContainer>
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
import { t } from '@lingui/core/macro';
|
||||
|
||||
import { AppChip } from '@/applications/components/AppChip';
|
||||
import { Avatar } from 'twenty-ui-deprecated/display';
|
||||
import { Chip, ChipAccent, ChipVariant } from 'twenty-ui-deprecated/components';
|
||||
@@ -22,7 +24,7 @@ export const SettingsItemTypeTag = ({
|
||||
return (
|
||||
<Chip
|
||||
className={className}
|
||||
label="Remote"
|
||||
label={t`Remote`}
|
||||
variant={ChipVariant.Transparent}
|
||||
accent={ChipAccent.TextPrimary}
|
||||
leftComponent={
|
||||
|
||||
Reference in New Issue
Block a user