fix: remove unused User import and add i18n keys to all locales

Fixes trunk_check (unused import) and check-translations (missing
keys in non-en_US locales) CI failures.
This commit is contained in:
nendo
2026-03-10 16:20:27 +09:00
parent e0b25fbc6c
commit bd5b3375f0
16 changed files with 256 additions and 1 deletions

View File

@@ -11,7 +11,7 @@ from handler.auth.base_handler import hash_client_token
from handler.database import db_client_token_handler, db_user_handler
from handler.redis_handler import sync_cache
from models.client_token import ClientToken
from models.user import Role, User
from models.user import Role
@pytest.fixture

View File

@@ -13,6 +13,23 @@
"boxart-physical": "Fyzický obal",
"boxart-style": "Styl obalu",
"canceled": "Zrušeno",
"client-api-tokens": "Client API Tokens",
"client-token-confirm-delete": "Are you sure you want to revoke this token? Any device using it will lose access.",
"client-token-confirm-regenerate": "This will invalidate the current credential. Any device using the old token will need to be re-paired.",
"client-token-copied": "Token copied to clipboard",
"client-token-created": "Token created successfully",
"client-token-deleted": "Token revoked successfully",
"client-token-delivery-hint": "This token will not be shown again.",
"client-token-expiry-30d": "30 days",
"client-token-expiry-90d": "90 days",
"client-token-expiry-1y": "1 year",
"client-token-expiry-never": "Never",
"client-token-name": "Token name",
"client-token-pair-claimed": "Device paired successfully!",
"client-token-pair-expired": "Pairing code expired",
"client-token-regenerated": "Token regenerated successfully",
"client-token-scopes": "Permissions",
"client-token-select-expiry": "Expiration",
"cleanup": "Vyčištění",
"cleanup-all": "Vyčistit vše",
"cleanup-all-confirm": "This will permanently delete all missing ROMs{platform} from the database and their resource directories. This action cannot be undone.",

View File

@@ -13,6 +13,23 @@
"boxart-physical": "Physisch",
"boxart-style": "Boxart-Stil",
"canceled": "Abgebrochen",
"client-api-tokens": "Client API Tokens",
"client-token-confirm-delete": "Are you sure you want to revoke this token? Any device using it will lose access.",
"client-token-confirm-regenerate": "This will invalidate the current credential. Any device using the old token will need to be re-paired.",
"client-token-copied": "Token copied to clipboard",
"client-token-created": "Token created successfully",
"client-token-deleted": "Token revoked successfully",
"client-token-delivery-hint": "This token will not be shown again.",
"client-token-expiry-30d": "30 days",
"client-token-expiry-90d": "90 days",
"client-token-expiry-1y": "1 year",
"client-token-expiry-never": "Never",
"client-token-name": "Token name",
"client-token-pair-claimed": "Device paired successfully!",
"client-token-pair-expired": "Pairing code expired",
"client-token-regenerated": "Token regenerated successfully",
"client-token-scopes": "Permissions",
"client-token-select-expiry": "Expiration",
"cleanup": "Bereinigung",
"cleanup-all": "Alles bereinigen",
"cleanup-all-confirm": "This will permanently delete all missing ROMs{platform} from the database and their resource directories. This action cannot be undone.",

View File

@@ -13,6 +13,23 @@
"boxart-physical": "Physical",
"boxart-style": "Boxart style",
"canceled": "Cancelled",
"client-api-tokens": "Client API Tokens",
"client-token-confirm-delete": "Are you sure you want to revoke this token? Any device using it will lose access.",
"client-token-confirm-regenerate": "This will invalidate the current credential. Any device using the old token will need to be re-paired.",
"client-token-copied": "Token copied to clipboard",
"client-token-created": "Token created successfully",
"client-token-deleted": "Token revoked successfully",
"client-token-delivery-hint": "This token will not be shown again.",
"client-token-expiry-30d": "30 days",
"client-token-expiry-90d": "90 days",
"client-token-expiry-1y": "1 year",
"client-token-expiry-never": "Never",
"client-token-name": "Token name",
"client-token-pair-claimed": "Device paired successfully!",
"client-token-pair-expired": "Pairing code expired",
"client-token-regenerated": "Token regenerated successfully",
"client-token-scopes": "Permissions",
"client-token-select-expiry": "Expiration",
"cleanup": "Cleanup",
"cleanup-all": "Clean up all",
"cleanup-all-confirm": "This will permanently delete all missing ROMs{platform} from the database and their resource directories. This action cannot be undone.",

View File

@@ -13,6 +13,23 @@
"boxart-physical": "Físico",
"boxart-style": "Estilo de carátula",
"canceled": "Cancelado",
"client-api-tokens": "Client API Tokens",
"client-token-confirm-delete": "Are you sure you want to revoke this token? Any device using it will lose access.",
"client-token-confirm-regenerate": "This will invalidate the current credential. Any device using the old token will need to be re-paired.",
"client-token-copied": "Token copied to clipboard",
"client-token-created": "Token created successfully",
"client-token-deleted": "Token revoked successfully",
"client-token-delivery-hint": "This token will not be shown again.",
"client-token-expiry-30d": "30 days",
"client-token-expiry-90d": "90 days",
"client-token-expiry-1y": "1 year",
"client-token-expiry-never": "Never",
"client-token-name": "Token name",
"client-token-pair-claimed": "Device paired successfully!",
"client-token-pair-expired": "Pairing code expired",
"client-token-regenerated": "Token regenerated successfully",
"client-token-scopes": "Permissions",
"client-token-select-expiry": "Expiration",
"cleanup": "Limpieza",
"cleanup-all": "Limpiar todo",
"cleanup-all-confirm": "This will permanently delete all missing ROMs{platform} from the database and their resource directories. This action cannot be undone.",

View File

@@ -13,6 +13,23 @@
"boxart-physical": "Physique",
"boxart-style": "Style de jaquette",
"canceled": "Annulé",
"client-api-tokens": "Client API Tokens",
"client-token-confirm-delete": "Are you sure you want to revoke this token? Any device using it will lose access.",
"client-token-confirm-regenerate": "This will invalidate the current credential. Any device using the old token will need to be re-paired.",
"client-token-copied": "Token copied to clipboard",
"client-token-created": "Token created successfully",
"client-token-deleted": "Token revoked successfully",
"client-token-delivery-hint": "This token will not be shown again.",
"client-token-expiry-30d": "30 days",
"client-token-expiry-90d": "90 days",
"client-token-expiry-1y": "1 year",
"client-token-expiry-never": "Never",
"client-token-name": "Token name",
"client-token-pair-claimed": "Device paired successfully!",
"client-token-pair-expired": "Pairing code expired",
"client-token-regenerated": "Token regenerated successfully",
"client-token-scopes": "Permissions",
"client-token-select-expiry": "Expiration",
"cleanup": "Nettoyage",
"cleanup-all": "Tout nettoyer",
"cleanup-all-confirm": "This will permanently delete all missing ROMs{platform} from the database and their resource directories. This action cannot be undone.",

View File

@@ -13,6 +13,23 @@
"boxart-physical": "Fizikai",
"boxart-style": "Boxart stílus",
"canceled": "Visszavonva",
"client-api-tokens": "Client API Tokens",
"client-token-confirm-delete": "Are you sure you want to revoke this token? Any device using it will lose access.",
"client-token-confirm-regenerate": "This will invalidate the current credential. Any device using the old token will need to be re-paired.",
"client-token-copied": "Token copied to clipboard",
"client-token-created": "Token created successfully",
"client-token-deleted": "Token revoked successfully",
"client-token-delivery-hint": "This token will not be shown again.",
"client-token-expiry-30d": "30 days",
"client-token-expiry-90d": "90 days",
"client-token-expiry-1y": "1 year",
"client-token-expiry-never": "Never",
"client-token-name": "Token name",
"client-token-pair-claimed": "Device paired successfully!",
"client-token-pair-expired": "Pairing code expired",
"client-token-regenerated": "Token regenerated successfully",
"client-token-scopes": "Permissions",
"client-token-select-expiry": "Expiration",
"cleanup": "Takarítás",
"cleanup-all": "Mindent tisztítson meg",
"cleanup-all-confirm": "This will permanently delete all missing ROMs{platform} from the database and their resource directories. This action cannot be undone.",

View File

@@ -13,6 +13,23 @@
"boxart-physical": "Fisico",
"boxart-style": "Stile copertina",
"canceled": "Annullato",
"client-api-tokens": "Client API Tokens",
"client-token-confirm-delete": "Are you sure you want to revoke this token? Any device using it will lose access.",
"client-token-confirm-regenerate": "This will invalidate the current credential. Any device using the old token will need to be re-paired.",
"client-token-copied": "Token copied to clipboard",
"client-token-created": "Token created successfully",
"client-token-deleted": "Token revoked successfully",
"client-token-delivery-hint": "This token will not be shown again.",
"client-token-expiry-30d": "30 days",
"client-token-expiry-90d": "90 days",
"client-token-expiry-1y": "1 year",
"client-token-expiry-never": "Never",
"client-token-name": "Token name",
"client-token-pair-claimed": "Device paired successfully!",
"client-token-pair-expired": "Pairing code expired",
"client-token-regenerated": "Token regenerated successfully",
"client-token-scopes": "Permissions",
"client-token-select-expiry": "Expiration",
"cleanup": "Pulizia",
"cleanup-all": "Pulisci tutto",
"cleanup-all-confirm": "This will permanently delete all missing ROMs{platform} from the database and their resource directories. This action cannot be undone.",

View File

@@ -13,6 +13,23 @@
"boxart-physical": "物理",
"boxart-style": "ボックスアートスタイル",
"canceled": "キャンセル済み",
"client-api-tokens": "Client API Tokens",
"client-token-confirm-delete": "Are you sure you want to revoke this token? Any device using it will lose access.",
"client-token-confirm-regenerate": "This will invalidate the current credential. Any device using the old token will need to be re-paired.",
"client-token-copied": "Token copied to clipboard",
"client-token-created": "Token created successfully",
"client-token-deleted": "Token revoked successfully",
"client-token-delivery-hint": "This token will not be shown again.",
"client-token-expiry-30d": "30 days",
"client-token-expiry-90d": "90 days",
"client-token-expiry-1y": "1 year",
"client-token-expiry-never": "Never",
"client-token-name": "Token name",
"client-token-pair-claimed": "Device paired successfully!",
"client-token-pair-expired": "Pairing code expired",
"client-token-regenerated": "Token regenerated successfully",
"client-token-scopes": "Permissions",
"client-token-select-expiry": "Expiration",
"cleanup": "クリーンアップ",
"cleanup-all": "すべてクリーンアップ",
"cleanup-all-confirm": "This will permanently delete all missing ROMs{platform} from the database and their resource directories. This action cannot be undone.",

View File

@@ -13,6 +13,23 @@
"boxart-physical": "물리적",
"boxart-style": "박스아트 스타일",
"canceled": "취소됨",
"client-api-tokens": "Client API Tokens",
"client-token-confirm-delete": "Are you sure you want to revoke this token? Any device using it will lose access.",
"client-token-confirm-regenerate": "This will invalidate the current credential. Any device using the old token will need to be re-paired.",
"client-token-copied": "Token copied to clipboard",
"client-token-created": "Token created successfully",
"client-token-deleted": "Token revoked successfully",
"client-token-delivery-hint": "This token will not be shown again.",
"client-token-expiry-30d": "30 days",
"client-token-expiry-90d": "90 days",
"client-token-expiry-1y": "1 year",
"client-token-expiry-never": "Never",
"client-token-name": "Token name",
"client-token-pair-claimed": "Device paired successfully!",
"client-token-pair-expired": "Pairing code expired",
"client-token-regenerated": "Token regenerated successfully",
"client-token-scopes": "Permissions",
"client-token-select-expiry": "Expiration",
"cleanup": "정리",
"cleanup-all": "모두 정리",
"cleanup-all-confirm": "This will permanently delete all missing ROMs{platform} from the database and their resource directories. This action cannot be undone.",

View File

@@ -13,6 +13,23 @@
"boxart-physical": "Fizyczny",
"boxart-style": "Styl okładki",
"canceled": "Anulowano",
"client-api-tokens": "Client API Tokens",
"client-token-confirm-delete": "Are you sure you want to revoke this token? Any device using it will lose access.",
"client-token-confirm-regenerate": "This will invalidate the current credential. Any device using the old token will need to be re-paired.",
"client-token-copied": "Token copied to clipboard",
"client-token-created": "Token created successfully",
"client-token-deleted": "Token revoked successfully",
"client-token-delivery-hint": "This token will not be shown again.",
"client-token-expiry-30d": "30 days",
"client-token-expiry-90d": "90 days",
"client-token-expiry-1y": "1 year",
"client-token-expiry-never": "Never",
"client-token-name": "Token name",
"client-token-pair-claimed": "Device paired successfully!",
"client-token-pair-expired": "Pairing code expired",
"client-token-regenerated": "Token regenerated successfully",
"client-token-scopes": "Permissions",
"client-token-select-expiry": "Expiration",
"cleanup": "Czyszczenie",
"cleanup-all": "Wyczyść wszystko",
"cleanup-all-confirm": "This will permanently delete all missing ROMs{platform} from the database and their resource directories. This action cannot be undone.",

View File

@@ -13,6 +13,23 @@
"boxart-physical": "Físico",
"boxart-style": "Estilo da capa",
"canceled": "Cancelado",
"client-api-tokens": "Client API Tokens",
"client-token-confirm-delete": "Are you sure you want to revoke this token? Any device using it will lose access.",
"client-token-confirm-regenerate": "This will invalidate the current credential. Any device using the old token will need to be re-paired.",
"client-token-copied": "Token copied to clipboard",
"client-token-created": "Token created successfully",
"client-token-deleted": "Token revoked successfully",
"client-token-delivery-hint": "This token will not be shown again.",
"client-token-expiry-30d": "30 days",
"client-token-expiry-90d": "90 days",
"client-token-expiry-1y": "1 year",
"client-token-expiry-never": "Never",
"client-token-name": "Token name",
"client-token-pair-claimed": "Device paired successfully!",
"client-token-pair-expired": "Pairing code expired",
"client-token-regenerated": "Token regenerated successfully",
"client-token-scopes": "Permissions",
"client-token-select-expiry": "Expiration",
"cleanup": "Limpeza",
"cleanup-all": "Limpar tudo",
"cleanup-all-confirm": "This will permanently delete all missing ROMs{platform} from the database and their resource directories. This action cannot be undone.",

View File

@@ -13,6 +13,23 @@
"boxart-physical": "Fizic",
"boxart-style": "Stilul copertii",
"canceled": "Anulat",
"client-api-tokens": "Client API Tokens",
"client-token-confirm-delete": "Are you sure you want to revoke this token? Any device using it will lose access.",
"client-token-confirm-regenerate": "This will invalidate the current credential. Any device using the old token will need to be re-paired.",
"client-token-copied": "Token copied to clipboard",
"client-token-created": "Token created successfully",
"client-token-deleted": "Token revoked successfully",
"client-token-delivery-hint": "This token will not be shown again.",
"client-token-expiry-30d": "30 days",
"client-token-expiry-90d": "90 days",
"client-token-expiry-1y": "1 year",
"client-token-expiry-never": "Never",
"client-token-name": "Token name",
"client-token-pair-claimed": "Device paired successfully!",
"client-token-pair-expired": "Pairing code expired",
"client-token-regenerated": "Token regenerated successfully",
"client-token-scopes": "Permissions",
"client-token-select-expiry": "Expiration",
"cleanup": "Curățare",
"cleanup-all": "Curăță tot",
"cleanup-all-confirm": "This will permanently delete all missing ROMs{platform} from the database and their resource directories. This action cannot be undone.",

View File

@@ -13,6 +13,23 @@
"boxart-physical": "Физический",
"boxart-style": "Стиль обложки",
"canceled": "Отменено",
"client-api-tokens": "Client API Tokens",
"client-token-confirm-delete": "Are you sure you want to revoke this token? Any device using it will lose access.",
"client-token-confirm-regenerate": "This will invalidate the current credential. Any device using the old token will need to be re-paired.",
"client-token-copied": "Token copied to clipboard",
"client-token-created": "Token created successfully",
"client-token-deleted": "Token revoked successfully",
"client-token-delivery-hint": "This token will not be shown again.",
"client-token-expiry-30d": "30 days",
"client-token-expiry-90d": "90 days",
"client-token-expiry-1y": "1 year",
"client-token-expiry-never": "Never",
"client-token-name": "Token name",
"client-token-pair-claimed": "Device paired successfully!",
"client-token-pair-expired": "Pairing code expired",
"client-token-regenerated": "Token regenerated successfully",
"client-token-scopes": "Permissions",
"client-token-select-expiry": "Expiration",
"cleanup": "Очистка",
"cleanup-all": "Очистить все",
"cleanup-all-confirm": "This will permanently delete all missing ROMs{platform} from the database and their resource directories. This action cannot be undone.",

View File

@@ -13,6 +13,23 @@
"boxart-physical": "物理",
"boxart-style": "封面样式",
"canceled": "已取消",
"client-api-tokens": "Client API Tokens",
"client-token-confirm-delete": "Are you sure you want to revoke this token? Any device using it will lose access.",
"client-token-confirm-regenerate": "This will invalidate the current credential. Any device using the old token will need to be re-paired.",
"client-token-copied": "Token copied to clipboard",
"client-token-created": "Token created successfully",
"client-token-deleted": "Token revoked successfully",
"client-token-delivery-hint": "This token will not be shown again.",
"client-token-expiry-30d": "30 days",
"client-token-expiry-90d": "90 days",
"client-token-expiry-1y": "1 year",
"client-token-expiry-never": "Never",
"client-token-name": "Token name",
"client-token-pair-claimed": "Device paired successfully!",
"client-token-pair-expired": "Pairing code expired",
"client-token-regenerated": "Token regenerated successfully",
"client-token-scopes": "Permissions",
"client-token-select-expiry": "Expiration",
"cleanup": "清理",
"cleanup-all": "清理全部",
"cleanup-all-confirm": "This will permanently delete all missing ROMs{platform} from the database and their resource directories. This action cannot be undone.",

View File

@@ -13,6 +13,23 @@
"boxart-physical": "物理",
"boxart-style": "封面樣式",
"canceled": "已取消",
"client-api-tokens": "Client API Tokens",
"client-token-confirm-delete": "Are you sure you want to revoke this token? Any device using it will lose access.",
"client-token-confirm-regenerate": "This will invalidate the current credential. Any device using the old token will need to be re-paired.",
"client-token-copied": "Token copied to clipboard",
"client-token-created": "Token created successfully",
"client-token-deleted": "Token revoked successfully",
"client-token-delivery-hint": "This token will not be shown again.",
"client-token-expiry-30d": "30 days",
"client-token-expiry-90d": "90 days",
"client-token-expiry-1y": "1 year",
"client-token-expiry-never": "Never",
"client-token-name": "Token name",
"client-token-pair-claimed": "Device paired successfully!",
"client-token-pair-expired": "Pairing code expired",
"client-token-regenerated": "Token regenerated successfully",
"client-token-scopes": "Permissions",
"client-token-select-expiry": "Expiration",
"cleanup": "清理",
"cleanup-all": "清理全部",
"cleanup-all-confirm": "This will permanently delete all missing ROMs{platform} from the database and their resource directories. This action cannot be undone.",