Exemple #1
0
        /// <summary>
        /// Retrieves available localizations by locating folders inside the localization resources root.
        /// Folder names should correspond to the <see cref="LanguageTags"/> tag entries (RFC5646).
        /// </summary>
        private async UniTask RetrieveAvailableLocalesAsync()
        {
            var resources = await ProviderList.LocateFoldersAsync(Configuration.Loader.PathPrefix);

            AvailableLocales.Clear();
            AvailableLocales.AddRange(resources.Select(r => r.Name).Where(LanguageTags.ContainsTag));
            AvailableLocales.Add(Configuration.SourceLocale);
        }