reuse locale_for_flag instead of split