l10n: Move code from the L10nProvider to a split out trait.