Create a front public API

Only a method for now, to set locale in tests.