Laurine icon indicating copy to clipboard operation
Laurine copied to clipboard

Feature request: use Base translation as comment

Open daaa57150 opened this issue 6 years ago • 0 comments

Currently when Laurine generates the static vars, there is no comment:

public struct Localizations {
    public struct Project {
        public struct Example {
            /// Base translation: An example project
            public static var Title : String = NSLocalizedString("Project.Example.Title", comment: "")
        }
    }
}

In my case, I use a BartyCrouch script after the Laurine script, which uses the comments to populate all my other translation files (everything is in 24 languages in my app).

They end up with a useless comment on every key:

/* No comment provided by engineer. */
"Project.Regional.Title" = "";

I'd really like to have the option to tell Laurine to use the Base translation as the comment, so to get a better result:

  • Laurine
public struct Localizations {
    public struct Project {
        public struct Example {
            /// Base translation: An example project
            public static var Title : String = NSLocalizedString("Project.Example.Title", comment: "An example project")
        }
    }
}
  • BartyCrouch
/* An example project */
"Project.Regional.Title" = "";

daaa57150 avatar Aug 02 '18 10:08 daaa57150