adding getLocale cloud function
adding findOrCreateLocale

needs major refactor