LoadedTranslationType

Specifies available translation types used by translation processor to have knowledge about specifics of loaded translations. It helps later to decide what is needed to do with LoadedTranslation’s content property.

  • Pair where value is dictionary that contains dictionary with expression and length variations.

    "car-sentence": {
        "one": {
            "@100": "one car",
            "@200": "just one car",
            "@300": "you've got just one car"
        },
    
        "more": {
            "@100": "%d cars",
            "@300": "you've got %d cars"
        },
    
        "two": "two cars"
    }
    

    Declaration

    Swift

    case WithExpressionsAndLengthVariations
  • Pair where value is a dictionary with length variations.

    "forgot-password": {
        "@100": "Forgot Password? Help.",
        "@200": "Forgot Password? Get password Help.",
        "@300": "Forgotten Your Password? Get password Help."
    }
    

    Declaration

    Swift

    case WithLengthVariations
  • Pair where value is a dictionary with expressions.

    "cars": {
        "one": "1 car",
        "ie:x=2": "2 cars",
        "more": "%d cars"
    }
    

    Declaration

    Swift

    case WithExpressions
  • Simple key-value pair.

    "welcome": "welcome"
    

    Declaration

    Swift

    case Simple