Append the lines below to Localizable.strings (English)
// Default Employee Name
"NEW_EMPLOYEE_NAME" = "New Employee Name";
Append the lines below to Localizable.strings (French)
// Default Employee Name
"NEW_EMPLOYEE_NAME" = "Nouvel Employé";
Update Employee.swift
override init() {
let mainBundle: Bundle = Bundle.main
let newEmployeeNameString: String = mainBundle.localizedString(forKey: "NEW_EMPLOYEE_NAME",
value: "No Default Employee Name",
table: "Localizable")
if newEmployeeNameString != "No Default Employee Name" {
self.name = newEmployeeNameString
}
super.init()
}