Dactyloidae/mobile/ios/Client/Assets/Search/get_supported_locales.swift
2026-06-26 21:04:09 -07:00

13 lines
406 B
Swift

#!/usr/bin/env swift
import Foundation
var allLocales = NSLocale.availableLocaleIdentifiers()
// iOS doesn't directly support zh-CN/zh-TW; instead, it supports zh-Hans-CN and zh-Hant-TW, respectively.
// These transformations are done in SearchEngines.swift. Add them to the list of supported engines so
// that we download them.
allLocales.append("zh_CN")
allLocales.append("zh_TW")
print(allLocales)