localicious icon indicating copy to clipboard operation
localicious copied to clipboard

Keys starting with digits do not compile for iOS

Open jhildensperger opened this issue 3 years ago • 0 comments

This should be caught by validation

For example, this:

SHARED:
    Widget:
      1CoolTitle:
        COPY:
          en: "😎 title"
          nl: "😎 titel"

Renders the following which does not compile:

public struct L {
    public struct Widget {
        public static let 1CoolTitle = LocaliciousData(
            accessibilityIdentifier: "Widget.1CoolTitle",
            accessibilityHintKey: nil,
            accessibilityLabelKey: nil,
            accessibilityValueKey: nil,
            translationKey: "Widget.1CoolTitle.COPY",
            translationArgs: []
        )
    }

jhildensperger avatar Apr 12 '21 19:04 jhildensperger