Skip to content

Conversation

@mokagio
Copy link
Contributor

@mokagio mokagio commented Dec 2, 2025

Description

This Danger check was out of place as
WordPress/src/main/res/values/strings.xml is the source of truth for localizations.

Unlike in Apple projects, where we use genstrings to find localized strings in the codebase to assemble the strings file, in Android, as far as I understand, <app>/src/main/res/valudes/strings.xml is the source of truth.

I believe this check ended up in Dangerfile accidentally. It was introduced in
#20132. The update was done across our suite of apps, see for example woocommerce/woocommerce-android#10692 and woocommerce/woocommerce-ios#11926. Given I couldn't find a comment explicitly about adopting this check, I guess neither @iangmaia nor myself notice the same pattern as iOS was adopted in the Android repo.

To reinforce the idea that this check is out of place, notice that WooCommerce Android does not implement the check. Of course, it could be that WooCommerce is wrong, but lacking code to update strings.xml as part of the code freeze process, that explanation is not satisfying.

Testing instructions

See this test PR: #22383

This Danger check was out of place as
`WordPress/src/main/res/values/strings.xml` is the source of truth for
localizations.

Unlike in Apple projects, where we use `genstrings` to find localized
strings in the codebase to assemble the `strings` file, in Android, as
far as I understand, `<app>/src/main/res/valudes/strings.xml` is the
source of truth.

I believe this check ended up in `Dangerfile` accidentally. It was
introduced in
#20132.
The update was done across our suite of apps, see for example
woocommerce/woocommerce-android#10692 and
woocommerce/woocommerce-ios#11926. Given I
couldn't find a comment explicitly about adopting this check, I guess
neither @iangmaia nor myself notice the same pattern as iOS was adopted
in the Android repo.

To reinforce the idea that this check is out of place, notice that
WooCommerce Android does not implement the check. _Of course, it could
be that WooCommerce is wrong, but lacking code to update `strings.xml`
as part of the code freeze process, that explanation is not satisfying._
@mokagio mokagio requested review from iangmaia and oguzkocer December 2, 2025 06:43
@mokagio mokagio added this to the Future milestone Dec 2, 2025
@sonarqubecloud
Copy link

sonarqubecloud bot commented Dec 2, 2025

@mokagio mokagio marked this pull request as ready for review December 2, 2025 06:48
@wpmobilebot
Copy link
Contributor

App Icon📲 You can test the changes from this Pull Request in Jetpack by scanning the QR code below to install the corresponding build.
App NameJetpack
FlavorJalapeno
Build TypeDebug
Versionpr22382-451040e
Commit451040e
Direct Downloadjetpack-prototype-build-pr22382-451040e.apk
Note: Google Login is not supported on these builds.

@wpmobilebot
Copy link
Contributor

App Icon📲 You can test the changes from this Pull Request in WordPress by scanning the QR code below to install the corresponding build.
App NameWordPress
FlavorJalapeno
Build TypeDebug
Versionpr22382-451040e
Commit451040e
Direct Downloadwordpress-prototype-build-pr22382-451040e.apk
Note: Google Login is not supported on these builds.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants