1
0
mirror of https://github.com/tooot-app/app synced 2025-06-05 22:19:13 +02:00

Update i18next type

This commit is contained in:
xmflsct
2022-12-23 15:53:40 +01:00
parent b388853429
commit e32125ad17
49 changed files with 1054 additions and 896 deletions

View File

@ -129,7 +129,7 @@ const useProfileMutation = () => {
displayMessage({
ref: variables.messageRef,
message: i18next.t('screenTabs:me.profile.feedback.failed', {
type: i18next.t(`screenTabs:${variables.message.text}`)
type: i18next.t(`screenTabs:${variables.message.text}` as any)
}),
...(err && { description: err.message }),
type: 'danger'
@ -142,7 +142,7 @@ const useProfileMutation = () => {
displayMessage({
ref: variables.messageRef,
message: i18next.t('screenTabs:me.profile.feedback.succeed', {
type: i18next.t(`screenTabs:${variables.message.text}`)
type: i18next.t(`screenTabs:${variables.message.text}` as any)
}),
type: 'success'
})

View File

@ -70,7 +70,7 @@ export const setChannels = async (instance: InstanceLatest, reset: boolean | und
const setChannel = async (type: string) =>
Notifications.setNotificationChannelAsync(`${account}_${type}`, {
groupId: account,
name: i18n.t(`screenTabs:me.push.${type}.heading`),
name: i18n.t(`screenTabs:me.push.${type}.heading` as any),
importance: Notifications.AndroidImportance.DEFAULT,
bypassDnd: false,
showBadge: true,