diff --git a/src/apps/officer-web/Screens/Dashboard/Settings/IntegrationsSettings/GoogleOAuthConfig.tsx b/src/apps/officer-web/Screens/Dashboard/Settings/IntegrationsSettings/GoogleOAuthConfig.tsx index 31de06c5..f7a7162e 100644 --- a/src/apps/officer-web/Screens/Dashboard/Settings/IntegrationsSettings/GoogleOAuthConfig.tsx +++ b/src/apps/officer-web/Screens/Dashboard/Settings/IntegrationsSettings/GoogleOAuthConfig.tsx @@ -8,7 +8,7 @@ import { Button } from '@/components/ui/button'; import { Collapsible, CollapsibleTrigger, CollapsibleContent } from '@/components/ui/collapsible'; import { useClient } from 'hooks/useClient'; import { useTranslation } from '@/lib/i18n'; -import { Untranslated } from '@/lib/Untranslated'; +import { Untranslated } from '@/components/Untranslated'; type GoogleOAuthSettings = { clientId: string; diff --git a/src/workspaces/components/Untranslated.tsx b/src/workspaces/components/Untranslated.tsx index df9c5d6c..41b1004c 100644 --- a/src/workspaces/components/Untranslated.tsx +++ b/src/workspaces/components/Untranslated.tsx @@ -2,15 +2,22 @@ import type { ReactNode } from 'react'; type UntranslatedProps = { children: ReactNode; - /** Why this text is not localized. Required so the decision is legible at the call site. */ - reason: 'foreign-ui-label'; + /** + * Why this text is not localized. Required so the decision is legible at the call site. + * + * `foreign-ui-label` — quoted from another product's interface ("click **Enable**"). It has to match + * what the reader sees on THEIR screen, and that product localizes by its own account language. + * `product-name` — the name of a product or feature: Tmux, Neovim, Claude Code, Officer. The doc's + * never-translate list covers these directly. + */ + reason: 'foreign-ui-label' | 'product-name'; className?: string; }; /** * Text that is deliberately NOT localized, marked as such where it is written. * - * The only reason so far is `foreign-ui-label`: a label quoted from another product's interface, which + * The first reason was `foreign-ui-label`: a label quoted from another product's interface, which * docs/localization.md classifies as an identifier rather than prose. "Click **Enable**" has to match * what the reader sees on Google's screen, and Google localises by their Google account language rather * than by ours — so translating it sends somebody hunting for "Ativar" in a console that says "Enable".