IceCubes/Packages/Status
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
..
.swiftpm/xcode/xcshareddata/xcschemes Generic Statuses list 2022-12-19 07:17:01 +01:00
Sources/Status Prepend language list with recently used languages (#353) 2023-01-24 21:34:16 +01:00
.gitignore Account statuses and more packages 2022-12-18 20:30:19 +01:00
Package.swift Implement Localization (#80) 2023-01-19 18:14:08 +01:00
README.md Account statuses and more packages 2022-12-18 20:30:19 +01:00

Status

A description of this package.