Browse Source

German ahead/behind localization.

pull/92/head
Abhishek 4 years ago
parent
commit
f343c9eb55
  1. 10
      Clocker/Panel/Data Layer/TimezoneDataOperations.swift

10
Clocker/Panel/Data Layer/TimezoneDataOperations.swift

@ -319,6 +319,11 @@ extension TimezoneDataOperations {
replaceAgo.append(agoString.replacingOccurrences(of: "ago", with: CLEmptyString))
if !TimezoneDataOperations.currentLocale.contains("en") {
if TimezoneDataOperations.currentLocale.contains("de") {
replaceAgo = replaceAgo.replacingOccurrences(of: "Vor ", with: CLEmptyString)
replaceAgo.append(" vor")
}
return replaceAgo
}
@ -334,6 +339,11 @@ extension TimezoneDataOperations {
replaceAgo.append(replaced)
if !TimezoneDataOperations.currentLocale.contains("en") {
if TimezoneDataOperations.currentLocale.contains("de") {
replaceAgo = replaceAgo.replacingOccurrences(of: "Vor ", with: CLEmptyString)
replaceAgo.append(" zurück")
}
return replaceAgo
}

Loading…
Cancel
Save