Creates a function that transforms every text of a Localised language map.
The function keeps the shape of the map it is given. A language carrying one text gets one text back, and a language
carrying several gets several back. Texts the mapper empties are dropped, and so are languages left with no text.
Parameters
mapper: (value:string)=>string
The transformation applied to every text of a map, for example a clean-up of stray whitespace
Creates a function that transforms every text of a Localised language map.
The function keeps the shape of the map it is given. A language carrying one text gets one text back, and a language carrying several gets several back. Texts the mapper empties are dropped, and so are languages left with no text.