Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature request] Retain file organizers during translation #5

Closed
orkun1675 opened this issue Jan 14, 2024 · 1 comment
Closed

[Feature request] Retain file organizers during translation #5

orkun1675 opened this issue Jan 14, 2024 · 1 comment

Comments

@orkun1675
Copy link

Hello,

As you know l10n files can get quite large and hard to maintain. As the number of strings increase it gets difficult to remember which page/widget tthey are used in.

There is an outstanding issue in Flutter that requests splitting up ARB files. In the meantime, we are using the syntax described here to organize our ARB file.

Example:

  "@@locale": "en",
  "@_PAGE_LOGIN": {},
  "loginWithGameServices": "Login with {provider}",
  "@loginWithGameServices": {
    "placeholders": {
      "provider": {
        "type": "String",
        "example": "Game Center"
      }
    }
  },
  "@_PAGE_PLAY": {},
  "saveChanges": "Save",
  "progressNotSaved": "Progress not saved!",

The values with prefix @_ are used as dividers since JSON doesn't support comments.

Would it be possible to retain these lines during the auto translation flow?

This would help human translators navigate the generated auto translation file and fix issues.

@orkun1675 orkun1675 changed the title [Feature request] Keep file organizers during translation [Feature request] Retain file organizers during translation Jan 14, 2024
@theLee3
Copy link
Owner

theLee3 commented Jan 16, 2024

Done. Also adds @@locale if used in the template.

@theLee3 theLee3 closed this as completed Jan 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants