Skip to content

Add support for doubled asterisk in translation #155

Description

@Jean-Daniel

Is your feature request related to a problem? Please describe.
The crowdin CLI support a wide range of feature to define source/translations discovery and mapping (translation_replace, ignore, …), but they are ignored by the android plugin, and make very hard, or impossible to use the plugin for anything but simple use cases.

One missing feature especially, is support for doubled asterisk in the translation pattern. Trying to use it results in invalid argument error when trying to upload the file.

Couldn't upload source file: Wrong parameters: Key: exportOptions, Code: optionsValidationInvalid, Message: Invalid options given : [exportPattern][exportPattern - Export pattern can't contain any of the following characters: * ? : " >

crowdin.yaml reference:

Matches any string recursively (including subdirectories). Note that you can use ** in both the source and translation patterns.
When you use ** in the translation pattern, it always includes a sub-path from the source for a given file.
For example, you can use source: /en/**/*.po to recursively upload all *.po files to Crowdin.
The translation pattern will be /%two_letters_code%/**/%original_file_name%.

Describe the solution you'd like

Clearly define which subset of crowdin.yaml is supported and extends it to support more features.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions