Classes

The following classes are available globally.

  • This is the main class of Swifternalization library. It exposes methods that can be used to get localized keys with or without expressions from Localizable.strings files.

    It also uses Expressions.strings files to manage shared expressions that can have theirs identifiers placed in many versions of the Localizable.strings file.

    Internal classes of the Swifternalization contains logic that is responsible for detecting which value should be used for the given key and value.

    It is able to work with genstrings command-line tool like NSLocalizedString() macro does.

    It looks for content in the NSBundle you can provide and try to find:

    • Localizable.strings (Base),
    • Localizable.strings of preferred language, e.g. Localizable.strings (en)
    • Expressions.strings (Base),
    • Expressions.strings of preferred language, e.g. Expressions.strings (en)
    See more

    Declaration

    Swift

    public class Swifternalization