Umbraco 15 - DefaultUrlProvider - ILocalizationService is obsolete

HI,
I am looking at recoding our Umbraco 13 website to Umbraco 15.

To change URLSs, like using a “virtual folder” in the CMS or remove category segments from news urls, we use a class ShortenUrlsUrlProvider, which derives from DefaultUrlProvider

Looking at the v15 documentation code after getting a warning in Visual Studio, saying the ILocalizationService is obsolete, I looked at the following documentation page for further advise.

All it says is this:

The below example is using ILocalizationService which is currently obsolete and will be removed in v15. Use ILanguageService or IDictionaryItemService (for dictionary item operations) instead.

public class ShortenUrlsUrlProvider : DefaultUrlProvider {

The article does not show the changes needed, to use ILanguageService or IDictionaryService, as it seems DefaultUrlProvider or NewDefaultUrlProvider does not seem to of been updated to use either of these two alternatives. I also downloaded the Umbraco-CMS source code from GitHub to take a look.
Please can you advise me, or any of the core Umbraco coders advise on what changes to make?

Thank you,

Kind regards,

Pete


This is a companion discussion topic for the original entry at https://our.umbraco.com/forum/115134-umbraco-15-defaulturlprovider-ilocalizationservice-is-obsolete