Skip to content

Allow language mapping for Google Play resources #1149

@keunes

Description

@keunes

Problem description

Because of the above, we have to manually maintain the languages for all components (website has 4, play store listing 3, and the app itself 1). That's a bit of a pain.

Potential solutions/workarounds

Allow to provide a language mapping, or have such mapping built in. For example:

  • if language source file exists without region indication, and Google Play expects one with region
    • Example 1: we have resources in bn (may be used both in Bangladesh & India). Gradle play publisher takes this content and provides it to Google with the code bn_BD.
    • Example 2: one might have translations in pt (again, without region). Gradle play publisher takes this and provides it to Google both with the codes pt_PT and pt_BR
  • exact matches (with/without region) are taken as such
  • if language source file exists with region indication, and Google Play expects without region, then it strips the region code
    • Example: source material in lt_LT, Grade play publisher takes this and provides it as lt to Google
  • for cases with multiple matches, the user can indicate a mapping via some setting.
    • Example: ro_RO and ro_BG exist, and Google expects ro, then the user must indicate which resource is used to provided as ro or an error will be returned. (Bad example, just to show the point. Not sure if needed, given it's probably an unlikely scenario)
  • for languages (& regions) that Google doesn't support, nothing is submitted (e.g. eo)

Additional context

I realise that this would be Triple-T covering for Googles weird stuff. But it would be dam handy :-)

Metadata

Metadata

Assignees

No one assigned

    Labels

    dontclosePrevents the stale bot from closing this issue/prenhancementIndicates new feature requests

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions