The project isn't public yet, so I'm comfortable adding something unfinished.
Add stringsdict examples
Split LocalizedString into LocalizedStringPair and LocalizedString. LocalizedStringPair contains two LocalizedStrings, the base and translation. Stringsdict validation will only use LocalizedString.
Store paths everywhere instead of files, because files aren't needed.
Add SwiftyXMLParser dependency. This library isn't as mature or well-documented as I would like, but it allowed me to get up and running without needing to learn the SAX parser, and we can always remove it later.
Parse stringsdict files into structs.
I haven't written tests yet because I want to see whether these structures support the validation logic well enough.
SwiftyXMLParser doesn't give us line numbers, so line numbers are not supported in stringsdict files. I'm not sure Xcode would even show them in the right place.
The project isn't public yet, so I'm comfortable adding something unfinished.
LocalizedString
intoLocalizedStringPair
andLocalizedString
.LocalizedStringPair
contains twoLocalizedStrings
, the base and translation. Stringsdict validation will only useLocalizedString
.I haven't written tests yet because I want to see whether these structures support the validation logic well enough.
SwiftyXMLParser doesn't give us line numbers, so line numbers are not supported in stringsdict files. I'm not sure Xcode would even show them in the right place.