Skip to content

Translations not attempted #192

Description

@jtruher

Expected Behavior

Non-sourceLocale languages should have translated strings if the 'translate' step exists.

Actual Behavior

No translations are performed, or even attempted, as near as I can tell.

Steps to Reproduce the Problem

  1. run bartycrouch update
  2. See this output:
Starting Task 'Update Interfaces' ...
2020-06-17 15:34:53.276: ✅  ./musicplayer-extension/Base.lproj/MainInterface.storyboard:  Successfully updated strings file(s) of Storyboard or XIB file.
2020-06-17 15:34:53.350: ✅  ./musicplayer/Assets/Base.lproj/LaunchScreen.storyboard:  Successfully updated strings file(s) of Storyboard or XIB file.
2020-06-17 15:34:53.417: ✅  ./musicplayer/Assets/Base.lproj/Main.storyboard:  Successfully updated strings file(s) of Storyboard or XIB file.
Task 'Update Interfaces' took 0.955 seconds.
Starting Task 'Update Code' ...
2020-06-17 15:34:53.650: ✅  .:  Successfully updated strings file(s) of Code files.
Task 'Update Code' took 0.233 seconds.
Starting Task 'Code Transform' ...
Task 'Code Transform' took 0.174 seconds.
Starting Task 'Normalize' ...
Starting Task 'Translate' ...
2020-06-17 15:34:53.882: ✅  ./en.lproj/Localizable.strings:  Successfully translated 0 values in 0 files.

I've got 9 languages in there, and it's worked successfully before, but the translate step doesn't seem tremendously reliable.

Specifications

  • Version: 4.2.0
  • Platform: MacOS
  • IDE Version: 11.5 (11E608c)

My config file: yes, I know, I'm doing some foolish things, but I promise, this worked at least once! 😃

[update]
tasks = ["interfaces", "code", "transform", "normalize", "translate"]

[update.interfaces]
paths = ["."]
defaultToBase = true
ignoreEmptyStrings = false
unstripped = false

[update.code]
codePaths = ["."]
localizablePaths = ["."]
defaultToKeys = true
additive = true
unstripped = false
plistArguments = true

[update.transform]
codePaths = ["."]
localizablePaths = ["."]
transformer = "foundation"
supportedLanguageEnumPath = "."
typeName = "BartyCrouch"
translateMethodName = "translate"

[update.translate]
paths = "."
secret = "XXX"
sourceLocale = "en"

[update.normalize]
paths = ["."]
sourceLocale = "en"
harmonizeWithSource = true
sortByKeys = true

[lint]
paths = ["."]
duplicateKeys = true
emptyValues = true

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions