Given an initial locale or null, returns the locale that will be used for messages.
String findLocale(String? locale) => locale ?? global_state.getCurrentLocale();