Revert "feat(cvd): add device-bound subscription protocol"

This reverts commit 2cb9c13ab6.
This commit is contained in:
Tunglies
2026-06-02 21:02:19 +08:00
parent 2cb9c13ab6
commit fa27d3eae5
44 changed files with 79 additions and 1976 deletions
-4
View File
@@ -1,8 +1,4 @@
_version: 1
errors:
cvdDeviceLimit: تم الوصول إلى الحد الأقصى لعدد الأجهزة. يرجى إلغاء ربط جهاز قديم من لوحة تحكم المزوّد ثم إعادة المحاولة.
cvdKeyMissing: مفتاح الجهاز لهذا الاشتراك مفقود (ربما تمت استعادة الجهاز). أزل الاشتراك وأعد إضافته لإعادة تسجيله.
cvdKeyReregistered: تمت إعادة تسجيل مفتاح الجهاز لهذا الاشتراك؛ وستتم المزامنة في التحديث التالي.
notifications:
dashboardToggled:
title: لوحة التحكم
-4
View File
@@ -1,8 +1,4 @@
_version: 1
errors:
cvdDeviceLimit: Gerätelimit erreicht. Entferne ein altes Gerät in der Konsole deines Anbieters und versuche es erneut.
cvdKeyMissing: Der Geräteschlüssel für dieses Abonnement fehlt (das Gerät wurde möglicherweise wiederhergestellt). Entferne das Abonnement und füge es erneut hinzu, um es neu zu registrieren.
cvdKeyReregistered: Geräteschlüssel für dieses Abonnement neu registriert; er wird bei der nächsten Aktualisierung synchronisiert.
notifications:
dashboardToggled:
title: Übersicht
-4
View File
@@ -1,8 +1,4 @@
_version: 1
errors:
cvdDeviceLimit: Device limit reached. Unbind an old device in your provider's dashboard, then try again.
cvdKeyMissing: This subscription's device key is missing (the device may have been restored). Remove and re-add the subscription to re-register it.
cvdKeyReregistered: Device key re-registered for this subscription; it will sync on the next update.
notifications:
dashboardToggled:
title: Dashboard
-4
View File
@@ -1,8 +1,4 @@
_version: 1
errors:
cvdDeviceLimit: Se alcanzó el límite de dispositivos. Desvincula un dispositivo antiguo en el panel de tu proveedor e inténtalo de nuevo.
cvdKeyMissing: Falta la clave de dispositivo de esta suscripción (es posible que el dispositivo se haya restaurado). Elimina y vuelve a añadir la suscripción para registrarla de nuevo.
cvdKeyReregistered: Se volvió a registrar la clave de dispositivo de esta suscripción; se sincronizará en la próxima actualización.
notifications:
dashboardToggled:
title: Panel
-4
View File
@@ -1,8 +1,4 @@
_version: 1
errors:
cvdDeviceLimit: تعداد دستگاه‌ها به حد مجاز رسیده است. لطفاً در کنترل‌پنل سرویس‌دهنده یک دستگاه قدیمی را لغو پیوند کرده و دوباره تلاش کنید.
cvdKeyMissing: کلید دستگاه برای این اشتراک موجود نیست (ممکن است دستگاه بازیابی شده باشد). برای ثبت دوباره، اشتراک را حذف کرده و دوباره اضافه کنید.
cvdKeyReregistered: کلید دستگاه برای این اشتراک دوباره ثبت شد؛ در به‌روزرسانی بعدی همگام‌سازی می‌شود.
notifications:
dashboardToggled:
title: داشبورد
-4
View File
@@ -1,8 +1,4 @@
_version: 1
errors:
cvdDeviceLimit: Batas perangkat tercapai. Lepaskan perangkat lama di dasbor penyedia Anda, lalu coba lagi.
cvdKeyMissing: Kunci perangkat untuk langganan ini tidak ada (perangkat mungkin telah dipulihkan). Hapus dan tambahkan kembali langganan untuk mendaftarkannya ulang.
cvdKeyReregistered: Kunci perangkat untuk langganan ini didaftarkan ulang; akan disinkronkan pada pembaruan berikutnya.
notifications:
dashboardToggled:
title: Dasbor
-4
View File
@@ -1,8 +1,4 @@
_version: 1
errors:
cvdDeviceLimit: デバイス数が上限に達しました。プロバイダーの管理画面で古いデバイスの登録を解除してから再試行してください。
cvdKeyMissing: このサブスクリプションのデバイスキーが見つかりません(デバイスを復元した可能性があります)。登録し直すには、サブスクリプションを削除して再追加してください。
cvdKeyReregistered: このサブスクリプションのデバイスキーを再登録しました。次回の更新時に同期されます。
notifications:
dashboardToggled:
title: ダッシュボード
-4
View File
@@ -1,8 +1,4 @@
_version: 1
errors:
cvdDeviceLimit: 기기 수가 한도에 도달했습니다. 제공자 콘솔에서 기존 기기를 해제한 후 다시 시도하세요.
cvdKeyMissing: 이 구독의 기기 키가 없습니다(기기를 복원했을 수 있습니다). 다시 등록하려면 구독을 삭제한 후 다시 추가하세요.
cvdKeyReregistered: 이 구독의 기기 키를 다시 등록했습니다. 다음 업데이트 시 동기화됩니다.
notifications:
dashboardToggled:
title: 대시보드
-4
View File
@@ -1,8 +1,4 @@
_version: 1
errors:
cvdDeviceLimit: Достигнут лимит устройств. Отвяжите старое устройство в панели управления провайдера и повторите попытку.
cvdKeyMissing: Ключ устройства для этой подписки отсутствует (возможно, устройство было восстановлено). Удалите и снова добавьте подписку, чтобы зарегистрировать её заново.
cvdKeyReregistered: Ключ устройства для этой подписки перерегистрирован; он синхронизируется при следующем обновлении.
notifications:
dashboardToggled:
title: Панель
-4
View File
@@ -1,8 +1,4 @@
_version: 1
errors:
cvdDeviceLimit: Cihaz sınırına ulaşıldı. Lütfen sağlayıcı panelinden eski bir cihazı kaldırıp tekrar deneyin.
cvdKeyMissing: Bu aboneliğin cihaz anahtarı eksik (cihaz geri yüklenmiş olabilir). Yeniden kaydetmek için aboneliği kaldırıp tekrar ekleyin.
cvdKeyReregistered: Bu abonelik için cihaz anahtarı yeniden kaydedildi; bir sonraki güncellemede eşitlenecek.
notifications:
dashboardToggled:
title: Gösterge Paneli
-4
View File
@@ -1,8 +1,4 @@
_version: 1
errors:
cvdDeviceLimit: Җиһазлар саны иң югары чиккә җитте. Зинһар, провайдер консолендә иске җиһазны чишегез һәм яңадан тырышып карагыз.
cvdKeyMissing: Бу язылуның җиһаз ачкычы юк (җиһаз торгызылган булырга мөмкин). Кабат теркәү өчен язылуны бетереп, яңадан өстәгез.
cvdKeyReregistered: Бу язылу өчен җиһаз ачкычы яңадан теркәлде; киләсе яңартуда синхронлашачак.
notifications:
dashboardToggled:
title: Идарә панеле
-4
View File
@@ -1,8 +1,4 @@
_version: 1
errors:
cvdDeviceLimit: 设备数已达上限,请前往机场控制台解绑旧设备后重试
cvdKeyMissing: 该订阅的设备密钥缺失(可能因恢复到新设备)。请删除并重新添加该订阅以重新注册。
cvdKeyReregistered: 已为该订阅重新注册设备密钥,将在下次更新时同步。
notifications:
dashboardToggled:
title: 仪表板
-4
View File
@@ -1,8 +1,4 @@
_version: 1
errors:
cvdDeviceLimit: 裝置數已達上限,請前往機場控制台解綁舊裝置後重試
cvdKeyMissing: 此訂閱的裝置密鑰遺失(可能因還原到新裝置)。請刪除並重新加入該訂閱以重新註冊。
cvdKeyReregistered: 已為此訂閱重新註冊裝置密鑰,將在下次更新時同步。
notifications:
dashboardToggled:
title: 儀表板
-23
View File
@@ -90,29 +90,6 @@ macro_rules! t {
mod test {
use super::resolve_supported_language;
/// Keys surfaced to users (e.g. CVD device-limit) must exist in every locale, otherwise that
/// locale silently falls back to Chinese. Cheap structural check: each `.yml` must mention the
/// key. Add new user-facing backend keys here when introduced.
#[test]
#[allow(clippy::expect_used)]
fn all_locales_define_user_facing_keys() {
let dir = concat!(env!("CARGO_MANIFEST_DIR"), "/locales");
let required = ["cvdDeviceLimit", "cvdKeyMissing", "cvdKeyReregistered"];
let mut checked = 0;
for entry in std::fs::read_dir(dir).expect("read locales dir") {
let path = entry.expect("dir entry").path();
if path.extension().and_then(|e| e.to_str()) != Some("yml") {
continue;
}
let content = std::fs::read_to_string(&path).expect("read locale file");
for key in required {
assert!(content.contains(key), "{path:?} is missing required key `{key}`");
}
checked += 1;
}
assert!(checked >= 13, "expected at least 13 locale files, found {checked}");
}
#[test]
fn test_resolve_supported_language() {
assert_eq!(resolve_supported_language("en").as_deref(), Some("en"));