tolgee-platform icon indicating copy to clipboard operation
tolgee-platform copied to clipboard

tolgee pull does not keep plurals format in Compose XML

Open phucynwa opened this issue 9 months ago • 1 comments

Here is my .tolgeerc

{
  "$schema": "https://docs.tolgee.io/cli-schema.json",
  "projectId": ****,
  "format": "COMPOSE_XML",
  "patterns": ["./src/**/*.kt"],
  "push": {
    "filesTemplate": "./src/commonMain/composeResources/values-{languageTag}/strings.xml",
    "language": ["en"]
  },
  "pull": {
    "path": "./src/commonMain/composeResources"
  }
}

And the strings.xml plurals:

  <plurals name="folder_folder_count">
    <item quantity="one">%1$d Folder</item>
    <item quantity="other">%1$d Folders</item>
  </plurals>

After push then pull tolgee, all %1$d become %d for no reason.

  <plurals name="folder_folder_count">
    <item quantity="one">%d Folder</item>
    <item quantity="other">%d Folders</item>
  </plurals>

This syntax works on Android XML but not Compose Multiplatform XML. Please fix it. Thank you.

phucynwa avatar May 23 '25 21:05 phucynwa

This is an export issue, so I'll move this to tolgee platform

stepan662 avatar Jun 05 '25 14:06 stepan662

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] avatar Jul 06 '25 02:07 github-actions[bot]

This issue was closed because it has been inactive for 14 days since being marked as stale.

github-actions[bot] avatar Jul 20 '25 02:07 github-actions[bot]