Skip to content

Instantly share code, notes, and snippets.

View toddhopkinson's full-sized avatar

Todd Hopkinson toddhopkinson

View GitHub Profile
@toddhopkinson
toddhopkinson / L10NTests.swift
Created June 16, 2017 21:51 — forked from Ben-G/L10NTests.swift
Very simple automated test to ensure localizations exist and are well-formed on iOS.
import Foundation
import XCTest
/// Basic sanity check that ensures that we are able to retrieve localized strings for all languages
/// we support.
final class L10NTests: XCTestCase {
func testLocalizations() {
let locales = ["en", "es", "zh-Hans", "zh-Hant", "fi"]
for locale in locales {