From dd2b96b5fd1b02b9d6ed6af413c251ccdf32a91f Mon Sep 17 00:00:00 2001 From: Jean-Luc Makiola Date: Fri, 24 Jul 2026 17:57:51 +0200 Subject: [PATCH] build(lint): don't fail the build on partial community plurals MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit A Weblate translation of a may not fill every CLDR quantity form its locale defines — e.g. Arabic's import_reminder_prompt_body_existing omits the "zero" form — which lint flags fatally as MissingQuantity and aborts the CI build. The missing form falls back to "other" at runtime, so this is the same partial-translation case we already accept for MissingTranslation; downgrade MissingQuantity to informational alongside it. Co-Authored-By: Claude Opus 4.8 (1M context) --- app/build.gradle.kts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/app/build.gradle.kts b/app/build.gradle.kts index b058653..0dbf7cf 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -113,10 +113,13 @@ android { lint { // Community translations are expected to be partial — a missing string // falls back to the English base at runtime — so don't fail the build on - // it. Stale/extra keys (ExtraTranslation) stay fatal; scripts/ + // it. Likewise a translated may not fill every CLDR quantity + // form its locale defines (e.g. Arabic needs "zero"); the missing form + // falls back to "other" at runtime, so MissingQuantity is informational + // too. Stale/extra keys (ExtraTranslation) stay fatal; scripts/ // check_translations.py guards the same invariants with clearer, // translator-facing messages. - informational += "MissingTranslation" + informational += listOf("MissingTranslation", "MissingQuantity") } testOptions {