Fix i18n
This commit is contained in:
parent
7362222f16
commit
82327da031
@ -18,13 +18,14 @@ const Container = styled.div`
|
|||||||
`
|
`
|
||||||
|
|
||||||
function useCopy(text: string) {
|
function useCopy(text: string) {
|
||||||
|
const t = useTranslate()
|
||||||
return useCallback(() => {
|
return useCallback(() => {
|
||||||
navigator.clipboard.writeText(text)
|
navigator.clipboard.writeText(text)
|
||||||
toast({
|
toast({
|
||||||
type: ToastType.Secondary,
|
type: ToastType.Secondary,
|
||||||
message: "Copied to clipboard.",
|
message: t.tips.copied_to_clipboard,
|
||||||
})
|
})
|
||||||
}, [text])
|
}, [text, t])
|
||||||
}
|
}
|
||||||
|
|
||||||
export { Password as PasswordFieldView }
|
export { Password as PasswordFieldView }
|
||||||
|
@ -138,3 +138,8 @@ tips:
|
|||||||
en: Automatically lock after inactivity
|
en: Automatically lock after inactivity
|
||||||
fr: Verouiller automatiquement après un temps d’inactivité
|
fr: Verouiller automatiquement après un temps d’inactivité
|
||||||
ja: 一定時間使わないときに自動的にロックする
|
ja: 一定時間使わないときに自動的にロックする
|
||||||
|
|
||||||
|
copied_to_clipboard:
|
||||||
|
en: Copied to clipboard
|
||||||
|
fr: Copié dans le presse-papier
|
||||||
|
ja: クリップボードへコピーしました
|
||||||
|
Loading…
x
Reference in New Issue
Block a user