Skip to content
Permalink
Browse files

Add support for de_LI.

  • Loading branch information...
frankrausch committed Sep 3, 2018
1 parent 8f575ad commit 644d31f3158f463acc8bdd97ff20bbd4219b0ff6
Showing with 4 additions and 2 deletions.
  1. +2 −1 Sources/Typographizer.swift
  2. +2 −1 TypographizerTests/TypographizerTests.swift
@@ -75,7 +75,8 @@ struct Typographizer {
self.closingDoubleQuote = ""
self.openingSingleQuote = "\u{201A}"
self.closingSingleQuote = ""
case "de_CH":
case "de_CH",
"de_LI":
self.openingDoubleQuote = "«"
self.closingDoubleQuote = "»"
self.openingSingleQuote = ""
@@ -32,9 +32,10 @@ class TypographizerTests: XCTestCase {
XCTAssertEqual(self.string.typographized(language: "sl", isHTML: true), expected)
}

func testTypographized_de_CH() {
func testTypographized_de_CH_de_LI() {
let expected = "The ‹quick› brown fox jumps over the «lazy» dog’s ear. This is <code style=\"font: 'SF UI'\">\"HTML\"</code>."
XCTAssertEqual(self.string.typographized(language: "de_CH", isHTML: true), expected)
XCTAssertEqual(self.string.typographized(language: "de_LI", isHTML: true), expected)
}

func testTypographized_bs_fi_sv() {

0 comments on commit 644d31f

Please sign in to comment.
You can’t perform that action at this time.