diff options
author | Ansh <anshnanda10@gmail.com> | 2023-11-20 13:29:27 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-20 13:29:27 -0800 |
commit | c5b6f88e9a694d79126af4f742e66833dfd528bd (patch) | |
tree | 0bfdc49ace558adc3d9d5a76fc4726f16f853d4e /src/view/com/composer/Composer.tsx | |
parent | 019aae5f01cb7b503d242917ae0092c2818f3b71 (diff) | |
download | voidsky-c5b6f88e9a694d79126af4f742e66833dfd528bd.tar.zst |
Hindi Internationalization (#1914)
* get basic hindi support to work * get web app language switcher in * Refactor i18n implementation and remove unused code * add missing strings * add dropdowns and modals missing strings * complete all hindi translations * fix merge conflicts * fix legeacy persisted state * fix data in RecommendedFeeds * fix lint
Diffstat (limited to 'src/view/com/composer/Composer.tsx')
-rw-r--r-- | src/view/com/composer/Composer.tsx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/view/com/composer/Composer.tsx b/src/view/com/composer/Composer.tsx index 50728cba8..6f058d39e 100644 --- a/src/view/com/composer/Composer.tsx +++ b/src/view/com/composer/Composer.tsx @@ -129,19 +129,19 @@ export const ComposePost = observer(function ComposePost({ } openModal({ name: 'confirm', - title: 'Discard draft', + title: _(msg`Discard draft`), onPressConfirm: onClose, onPressCancel: () => { closeModal() }, - message: "Are you sure you'd like to discard this draft?", - confirmBtnText: 'Discard', + message: _(msg`Are you sure you'd like to discard this draft?`), + confirmBtnText: _(msg`Discard`), confirmBtnStyle: {backgroundColor: colors.red4}, }) } else { onClose() } - }, [openModal, closeModal, activeModals, onClose, graphemeLength, gallery]) + }, [openModal, closeModal, activeModals, onClose, graphemeLength, gallery, _]) // android back button useEffect(() => { if (!isAndroid) { |