Skip to content

memoto/LocalizeChecker

Repository files navigation

LocalizeChecker

Linter that scans code for localize key usage and validates it. Additionally you can attach the appropriate reporting mechanism to see erros or warnings just right in Xcode

Installation

Swift Package Manager

.package(url: "https://github.com/memoto/LocalizeChecker.git, from: "0.1.8")

Usage

As SPM executable

Suppose you're located in the package root directory

swift run -c release check-localize \
    --sources-directory $SOURCES_PATH \
    --localized-bundle-path "$LOCALIZATION_RESOURCES_PATH/de.lproj" \
    --strictlicity warning

Package contents

Package consists of the following parts:

  • Data source
  • Parser
  • Checker
  • Reporter

In fact data flow between modules happens exactly in that order.

About

Linter for localization keys in the Swift code

Resources

License

Stars

Watchers

Forks

Packages

No packages published