Vale CMS Need more than a rule playground? Explore
Asset Explorer

AppleStrings

The values of an Apple .strings file, with the keys and comments left alone.

view textfsmi18n Vale ≥ 3.21.0 Source

Getting started

Save the file as config/views/AppleStrings.yml under your StylesPath, then:

[*.strings]
BasedOnStyles = Vale

View = AppleStrings

AppleStrings.yml

Pull named scopes out of a file Vale can’t otherwise parse.
# An Apple `.strings` file: the value of each `"key" = "value";` line. The
# keys and comments are never linted.
#
#   [*.strings]
#   BasedOnStyles = Vale
#   View = AppleStrings
engine: textfsm
template: |
  Value Message ((?:[^"\\]|\\.)*)

  Start
    ^\s*"(?:[^"\\]|\\.)*"\s*=\s*"${Message}"\s*; -> Record
scopes:
  - name: message
    expr: Message