[APP-735] Post language improvements (#982)
* Fix composer character-counter bouncing around UI elements * Fix composer toolbar padding when keyboard is dismissed on iOS * Use the full name of the language in the composer footer * Add headings to the DropdownButton * Update the composer language control to use a simpler dropdown * Fix lint * Add translate link to Post component used in notifications * Fix lint
This commit is contained in:
parent
f05c2f06d6
commit
e14c9783e0
11 changed files with 189 additions and 28 deletions
|
@ -18,6 +18,11 @@ export function code3ToCode2(lang: string): string {
|
|||
return lang
|
||||
}
|
||||
|
||||
export function codeToLanguageName(lang: string): string {
|
||||
const lang2 = code3ToCode2(lang)
|
||||
return LANGUAGES_MAP_CODE2[lang2]?.name || lang
|
||||
}
|
||||
|
||||
export function getPostLanguage(
|
||||
post: AppBskyFeedDefs.PostView,
|
||||
): string | undefined {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue