jayway/CWFoundation — comment on commit 52eb1044b729fd31ecd9f9e402670e6aa107cd12
File:  line 0
By PeyloW:

This is not an actual bug, the translator only adds the character that is present in the source. This fix removes the possibility for the client to add leading and trailing white spaces on purpose.

A proper fix would be to add the trimming as a configuration per client basis. This can be done with the existing delegate by implementing translator:atomicObjectInstanceOfClass:withString:fromSourceName:attributes:toKeyPath:context:shouldSkip:.

If deemed to cumbersome *(for non NSString values)* a new delegate method could be added, or maybe better yet a new marker in the translation file to denote that a trimmed string is requested. For example:
foo >> foo : NSString.trim;
Or something equivalent.