IceCubesApp/Packages
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
..
Account Make spelling of "favorite" consistent (#327) 2023-01-24 06:35:43 +01:00
AppAccount Push notifications: display account name if multi account fix #344 2023-01-24 13:38:26 +01:00
Conversations oops 2023-01-24 06:56:28 +01:00
DesignSystem Add haptic feedback on more buttons fix #315 2023-01-24 09:19:53 +01:00
Env Prepend language list with recently used languages (#353) 2023-01-24 21:34:16 +01:00
Explore Run SwiftFormat 2023-01-22 06:38:30 +01:00
Lists Do string manipulation at the decode time to keep the UI smooth fix #178 2023-01-20 18:27:00 +01:00
Models Fix some polls crashing at decoding 2023-01-24 21:19:14 +01:00
Network Various fixes due to recent merges 2023-01-24 07:19:09 +01:00
Notifications Various fixes due to recent merges 2023-01-24 07:19:09 +01:00
Status Prepend language list with recently used languages (#353) 2023-01-24 21:34:16 +01:00
Timeline Add haptic feedback on more buttons fix #315 2023-01-24 09:19:53 +01:00