Updated .translangs, it looks better now and makes it clear which shortcode is for which language

This commit is contained in:
Kwoth
2023-01-20 04:43:25 +01:00
parent dcc27a4a99
commit 710f4f2ed8
4 changed files with 146 additions and 4 deletions

View File

@@ -220,5 +220,5 @@ public sealed class TranslateService : ITranslateService, IExecNoCommand, IReady
}
public IEnumerable<string> GetLanguages()
=> _google.Languages.Select(x => x.Key);
=> _google.Languages.GroupBy(x => x.Value).Select(x => $"{x.AsEnumerable().Select(y => y.Key).Join(", ")}");
}