Split language detectors to be web/native dependent. Take care of strings that contain html.
Adds translate function with default namespaces and options.