Skip to content

Feature Request: Support multiple namespaces with single push #199

Description

@wongzigii

With this feature, we can push multiple file templates with different namespaces.
An example config file would look like:

"push": {
    "filesTemplate": [
      {
        "path": "./Sources/Resources/Resources/{languageTag}.lproj/Localizable.strings",
        "namespace": "Localizable.strings"
      },
      {
        "path": "./Sources/Resources/Resources/{languageTag}.lproj/Localizable.stringsdict",
        "namespace": "Localizable.stringsdict"
      },
      {
        "path": "./Resources/{languageTag}.lproj/InfoPlist.strings",
        "namespace": "InfoPlist.strings"
      }
    ],
    "languages": ["en"],
    "forceMode": "KEEP",
    "tagNewKeys": ["ios"]
  },

For now, we have to push multiple times seperately.

- name: push Localizable
  run: tolgee push \
    --files "./Sources/Resources/Resources/{languageTag}.lproj/Localizable.strings" \
    --namespace Localizable

- name: push LocalizableDict
  run: tolgee push \
    --files "./Sources/Resources/Resources/{languageTag}.lproj/Localizable.stringsdict" \
    --namespace LocalizableDict

- name: push InfoPlist
  run: tolgee push \
    --files "./Resources/{languageTag}.lproj/InfoPlist.strings" \
    --namespace InfoPlist

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions