iOS : mismatched translation iOS : mismatched translation xcode xcode

iOS : mismatched translation


In my case the "mismatched translation" was caused by a mismatch between the base language (English) string in my code (the value: parameter of the NSLocalizedString call) and the English string in the XLIFF file being imported. That shouldn't normally happen, but in this case the source code had been modified after the XLIFF was exported and before the translated XLIFF was imported. Still, it would be awfully nice if Xcode would pinpoint which one of my 450 translation units had the problem!


For anyone faces this issue with latest Xcode version, basically, mismatch means, you changed the source from exported file, you should change(translate) only the target, as changing the source makes mismatch with current source in Xcode, hence no effect as if xcode could not see translation for the source it has of main lang as you changed source by translating it with the target!

Kindly check the attached image, you should only translate Target if it needs translation, the source should not be touched!enter image description here


In my case the 'mismatched translation' was caused by some extra white space that obviously confused my either Xcode or my xliff editor...