IceCubes/Packages/Env/Sources/Env
Pascal Batty a1218e1488
Prepend language list with recently used languages (#353)
* Add new preference entry for recently used languages

Exposes a function to keep the language array clean: no more than 3 items, starting with the most recently used iso code

* Add the preferences to the status editor ViewModel

* Add language selector handling of most recent languages

Only when the user has explicitly selected a language, when the posting was successful, add the selected language to the preferences array.

- Makes Language a local private struct for clarity
- Ensures all available languages are only fetched once
- Separates recently used, other and search result section contents using specific vars/funcs

* Copy new key in all localization files

Co-authored-by: Pascal Batty <pascal@zen.ly>
2023-01-24 21:34:16 +01:00
..
Ext Swiftformat 2023-01-17 11:36:01 +01:00
CurrentAccount.swift Swiftformat 2023-01-17 11:36:01 +01:00
CurrentInstance.swift Swiftformat 2023-01-17 11:36:01 +01:00
NotificationsName.swift Share sheet extension 2023-01-15 16:39:08 +01:00
PollPreferences.swift Run SwiftFormat 2023-01-22 06:38:30 +01:00
PreferredBrowser.swift Swiftformat 2023-01-17 11:36:01 +01:00
PushNotificationsService.swift Push notifications: display account name if multi account fix #344 2023-01-24 13:38:26 +01:00
QuickLook.swift Swiftformat 2023-01-17 11:36:01 +01:00
Router.swift This is a fix for #317 (#318) 2023-01-24 06:37:15 +01:00
StreamWatcher.swift Swiftformat 2023-01-17 11:36:01 +01:00
UserPreferences.swift Prepend language list with recently used languages (#353) 2023-01-24 21:34:16 +01:00