mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-06-22 14:51:45 +00:00
fix(i18n): guard locale key parity and finish the OAuth consent page strings
Every non-en locale now exposes the exact same flat key set as en. Keys that had drifted out of sync are backfilled with the English source value (tagged en-fallback) so t() resolves a real string instead of relying on the silent runtime fallback; no existing translation was touched and no key was removed. Add a parity test that imports each aggregated locale bundle and asserts its key set matches en, with a diagnostic listing of any missing/extra keys. This complements the file-level check in shared/scripts by guarding the merged export the app actually serves. Finish internationalising OAuthAuthorizePage: the ~15 remaining hardcoded English chrome strings now go through oauth.authorize.* keys (English source in en, en-fallback placeholders elsewhere). Markup and behaviour are unchanged.
This commit is contained in:
@@ -83,5 +83,29 @@ const oauth: TranslationStrings = {
|
||||
'oauth.scope.journey:share.label': 'Journey 링크 관리',
|
||||
'oauth.scope.journey:share.description':
|
||||
'Journey의 공개 공유 링크 만들기, 업데이트, 취소',
|
||||
'oauth.authorize.authorizing': 'Authorizing…', // en-fallback
|
||||
'oauth.authorize.loading': 'Loading…', // en-fallback
|
||||
'oauth.authorize.errorTitle': 'Authorization Error', // en-fallback
|
||||
'oauth.authorize.loginTitle': 'Sign in to continue', // en-fallback
|
||||
'oauth.authorize.loginDescription':
|
||||
'{client} wants access to your TREK account. Please sign in first.', // en-fallback
|
||||
'oauth.authorize.loginButton': 'Sign in to TREK', // en-fallback
|
||||
'oauth.authorize.requestLabel': 'Authorization Request', // en-fallback
|
||||
'oauth.authorize.requestDescription':
|
||||
'This application is requesting access to your TREK account.', // en-fallback
|
||||
'oauth.authorize.trustNote':
|
||||
'Only grant access to applications you trust. Your data stays on your server.', // en-fallback
|
||||
'oauth.authorize.selectScope': 'Select at least one scope', // en-fallback
|
||||
'oauth.authorize.approveOneScope': 'Approve ({count} scope)', // en-fallback
|
||||
'oauth.authorize.approveManyScopes': 'Approve ({count} scopes)', // en-fallback
|
||||
'oauth.authorize.approveAccess': 'Approve Access', // en-fallback
|
||||
'oauth.authorize.deny': 'Deny', // en-fallback
|
||||
'oauth.authorize.choosePermissions': 'Choose which permissions to grant', // en-fallback
|
||||
'oauth.authorize.permissionsRequested': 'Permissions requested', // en-fallback
|
||||
'oauth.authorize.alwaysIncluded': 'Always included', // en-fallback
|
||||
'oauth.authorize.alwaysTool.listTrips':
|
||||
'List your trips so the AI can discover trip IDs', // en-fallback
|
||||
'oauth.authorize.alwaysTool.getTripSummary':
|
||||
'Read a trip overview needed to use any other tool', // en-fallback
|
||||
};
|
||||
export default oauth;
|
||||
|
||||
Reference in New Issue
Block a user