Please carefully read this guide in order to fully configure this template, and remember to test it on a Real Device – the Emulator may fail.
This template has native Apple Swift code, so you can edit it only with Xcode running on a Mac computer. If you don’t have it, download it for free on the Mac App Store.
Info.plist
file – you can find it in the files list on the left-side panel – and set the text you wish in the Value
column of the Privacy rows.Main.storyboard
and you can find it in the list of file that is shown in left-side panel of the Xcode window.Assets.xcassets
folder.
let APP_NAME = "TranslateIt"
let ADMOB_INTERSTITIAL_UNIT_ID = "ca-app-pub-3940256099942544/1033173712"
You also have to replace the string into Info.plist
with your own App ID:#
symbol. The main color of the app and some UI will be affected by your change:
let MAIN_COLOR = hexValue(hex: #E9684F")
.ttf
or .otf
font file into the left-side panel in Xcode and click the Finish button in the popup that will show up: let GOOGLE_TRANSLATION_API_KEY = "AIzaSyDbe96oQjWarxP9EGwA8q73GDh-94xmg"
Follow these steps to generate a Key and enable the Cloud Translate API (you must have an active Google Billing account with your credit card registered in it, and a created Cloud Platform’s Project):
let languagesArray = [
"af__Afrikaans",
"sq__Albanian",
"am__Amharic",
"ar__Arabic",
"hy__Armenian",
"az__Azerbaijani",
"eu__Basque",
"be__Belarusian",
"bn__Bengali",
"bs__Bosnian",
"bg__Bulgarian",
"ca__Catalan",
"ceb__Cebuano",
"ny__Chichewa",
"zh__Chinese (Simplified)",
"zh-TW__Chinese (Traditional)",
"co__Corsican",
"hr__Croatian",
"cs__Czech",
"da__Danish",
"nl__Dutch",
"en__English",
"eo__Esperanto",
"et__Estonian",
"tl__Filipino",
"fi__Finnish",
"fr__French",
"fy__Frisian",
"gl__Galician",
"ka__Georgian",
"de__German",
"el__Greek",
"gu__Gujarati",
"ht__Haitian Creole",
"ha__Hausa",
"haw__Hawaiian",
"iw__Hebrew",
"hi__Hindi",
"hmn__Hmong",
"hu__Hungarian",
"is__Icelandic",
"ig__Igbo",
"id__Indonesian",
"ga__Irish",
"it__Italian",
"ja__Japanese",
"jw__Javanese",
"kn__Kannada",
"kk__Kazakh",
"km__Khmer",
"ko__Korean",
"ku__Kurdish (Kurmanji)",
"ky__Kyrgyz",
"lo__Lao",
"la__Latin",
"lv__Latvian",
"lt__Lithuanian",
"lb__Luxembourgish",
"mk__Macedonian",
"mg__Malagasy",
"ms__Malay",
"ml__Malayalam",
"mt__Maltese",
"mi__Maori",
"mr__Marathi",
"mn__Mongolian",
"my__Myanmar (Burmese)",
"ne__Nepali",
"no__Norwegian",
"ps__Pashto",
"fa__Persian",
"pl__Polish",
"pt__Portuguese",
"pa__Punjabi",
"ro__Romanian",
"ru__Russian",
"sm__Samoan",
"gd__Scots Gaelic",
"sr__Serbian",
"st__Sesotho",
"sn__Shona",
"sd__Sindhi",
"si__Sinhala",
"sk__Slovak",
"sl__Slovenian",
"so__Somali",
"es__Spanish",
"su__Sundanese",
"sw__Swahili",
"sv__Swedish",
"tg__Tajik",
"ta__Tamil",
"te__Telugu",
"th__Thai",
"tr__Turkish",
"uk__Ukrainian",
"ur__Urdu",
"uz__Uzbek",
"vi__Vietnamese",
"cy__Welsh",
"xh__Xhosa",
"yi__Yiddish",
"yo__Yoruba",
"zu__Zulu",
]
You may remove some languages from that array, if you want to, but you are NOT allowed to add any custom language code or name. Anyway, I suggest you to just leave that array as it is.
// MARK: - TABLES & COLUMNS NAMES
fireInterstitialAd;
Xcode will show you a list of Swift files where such code is located.