Merge pull request #417 from Andeveling/fix/i18n-settings-overview-roles

fix(i18n): settings-overview role namespace, scopesHint rich-tag, and role SelectValue from #375
This commit is contained in:
Arnas Donauskas 2026-07-29 10:06:42 +03:00 committed by GitHub
commit ff2fb06181
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 5 additions and 5 deletions

View File

@ -1600,7 +1600,7 @@
"nameLabel": "Name", "nameLabel": "Name",
"namePlaceholder": "e.g. Zapier automation", "namePlaceholder": "e.g. Zapier automation",
"scopesLabel": "Scopes", "scopesLabel": "Scopes",
"scopesHint": "A key with no scopes can still call <code className=\"text-[11px]\">GET /api/v1/me</code> to verify it works.", "scopesHint": "A key with no scopes can still call <code>GET /api/v1/me</code> to verify it works.",
"cancel": "Cancel", "cancel": "Cancel",
"creating": "Creating…", "creating": "Creating…",
"createKey": "Create key", "createKey": "Create key",

View File

@ -1598,7 +1598,7 @@
"nameLabel": "이름", "nameLabel": "이름",
"namePlaceholder": "예: Zapier 자동화", "namePlaceholder": "예: Zapier 자동화",
"scopesLabel": "권한 범위", "scopesLabel": "권한 범위",
"scopesHint": "권한 범위가 없는 키도 <code className=\"text-[11px]\">GET /api/v1/me</code>를 호출해 동작을 확인할 수 있습니다.", "scopesHint": "권한 범위가 없는 키도 <code>GET /api/v1/me</code>를 호출해 동작을 확인할 수 있습니다.",
"cancel": "취소", "cancel": "취소",
"creating": "만드는 중…", "creating": "만드는 중…",
"createKey": "키 생성", "createKey": "키 생성",

View File

@ -274,7 +274,7 @@ export function InviteMemberDialog({
onValueChange={(v) => v && setRole(v as InviteRole)} onValueChange={(v) => v && setRole(v as InviteRole)}
> >
<SelectTrigger className="w-full bg-muted border-border text-foreground"> <SelectTrigger className="w-full bg-muted border-border text-foreground">
<SelectValue /> <SelectValue>{tRoles(role)}</SelectValue>
</SelectTrigger> </SelectTrigger>
<SelectContent> <SelectContent>
<SelectItem value="admin">{tRoles('admin')}</SelectItem> <SelectItem value="admin">{tRoles('admin')}</SelectItem>

View File

@ -428,7 +428,7 @@ export function MembersTab() {
className="w-32 bg-muted border-border text-foreground" className="w-32 bg-muted border-border text-foreground"
disabled={isBusy} disabled={isBusy}
> >
<SelectValue /> <SelectValue>{tRoles(member.role)}</SelectValue>
</SelectTrigger> </SelectTrigger>
<SelectContent> <SelectContent>
{EDITABLE_ROLES.map((r) => ( {EDITABLE_ROLES.map((r) => (

View File

@ -40,7 +40,7 @@ export function SettingsOverview({
useAuth(); useAuth();
const { mode, theme } = useTheme(); const { mode, theme } = useTheme();
const t = useTranslations('Settings.overview'); const t = useTranslations('Settings.overview');
const tRoles = useTranslations('roles'); const tRoles = useTranslations('Settings.roles');
const tSections = useTranslations('Settings.sections'); const tSections = useTranslations('Settings.sections');
const [counts, setCounts] = useState<OverviewCounts | null>(null); const [counts, setCounts] = useState<OverviewCounts | null>(null);