Add translations for the share button

This commit is contained in:
Marvin Sextro 2021-12-02 03:45:02 +01:00
parent be72026d54
commit c12e0f5d2e
11 changed files with 22 additions and 12 deletions

View File

@ -62,7 +62,7 @@ function Form(): JSX.Element {
}, [inputFile]) }, [inputFile])
// Whether Safari is used or not // Whether Safari is used or not
let [isSafari, setIsSafari] = useState<boolean>(false); let [isSafari, setIsSafari] = useState<boolean>(true);
// Check if Safari is used // Check if Safari is used
useEffect(() => { useEffect(() => {
@ -95,7 +95,7 @@ function Form(): JSX.Element {
try { try {
await window.navigator.share(shareData); await window.navigator.share(shareData);
} catch(error) { } catch(error) {
setErrorMessage(error); console.log(error);
} }
} }
@ -295,12 +295,12 @@ function Form(): JSX.Element {
} }
<Card content={ <Card content={
<div className={`${isShareDialogAvailable ? "md:grid-cols-2": ""} grid-cols-1 grid gap-5`}> <div className={`${isShareDialogAvailable ? "md:grid-cols-2": ""} grid-cols-1 grid gap-5`}>
<Button icon="kofi.png" text={t('common:donate')} onClick={() => {
window.open('https://ko-fi.com/marvinsxtr', '_blank');
}} />
{ {
isShareDialogAvailable && <Button text={t('common:share')} onClick={showShareDialog} /> isShareDialogAvailable && <Button text={t('common:share')} onClick={showShareDialog} />
} }
<Button icon="kofi.png" text={t('common:donate')} onClick={() => {
window.open('https://ko-fi.com/marvinsxtr', '_blank');
}} />
</div> </div>
}/> }/>
</form> </form>

View File

@ -24,4 +24,5 @@ iAcceptThe: Ich akzeptiere die
privacyPolicy: Datenschutzerklärung privacyPolicy: Datenschutzerklärung
createdOnDevice: Auf Deinem Gerät erstellt createdOnDevice: Auf Deinem Gerät erstellt
openSourceTransparent: Open Source und transparent openSourceTransparent: Open Source und transparent
hostedInEU: In der EU gehostet hostedInEU: In der EU gehostet
share: Weiterempfehlen

View File

@ -25,3 +25,4 @@ privacyPolicy: Πολιτική Απορρήτου
createdOnDevice: Δημιουργείται στη συσκευή σας createdOnDevice: Δημιουργείται στη συσκευή σας
openSourceTransparent: Ανοιχτού κώδικα και διαφανής openSourceTransparent: Ανοιχτού κώδικα και διαφανής
hostedInEU: Φιλοξενείται στην ΕΕ hostedInEU: Φιλοξενείται στην ΕΕ
share: Συστήσει

View File

@ -24,4 +24,5 @@ iAcceptThe: I accept the
privacyPolicy: Privacy Policy privacyPolicy: Privacy Policy
createdOnDevice: Created on your device createdOnDevice: Created on your device
openSourceTransparent: Open source and transparent openSourceTransparent: Open source and transparent
hostedInEU: Hosted in the EU hostedInEU: Hosted in the EU
share: Share

View File

@ -24,4 +24,5 @@ iAcceptThe: Acepto la
privacyPolicy: Política de Privacidad privacyPolicy: Política de Privacidad
createdOnDevice: Creado en su dispositivo createdOnDevice: Creado en su dispositivo
openSourceTransparent: Open source y transparente openSourceTransparent: Open source y transparente
hostedInEU: Alojado en la UE hostedInEU: Alojado en la UE
share: Recomendar

View File

@ -24,4 +24,5 @@ iAcceptThe: Hyväksyn
privacyPolicy: Tietosuojaselosteen privacyPolicy: Tietosuojaselosteen
createdOnDevice: Luotu laitteellasi createdOnDevice: Luotu laitteellasi
openSourceTransparent: Avoin lähdekoodi ja läpinäkyvä openSourceTransparent: Avoin lähdekoodi ja läpinäkyvä
hostedInEU: Isännöidään EU:ssa. hostedInEU: Isännöidään EU:ssa.
share: Suosittele

View File

@ -24,4 +24,5 @@ iAcceptThe: J'accepte la
privacyPolicy: Politique de confidentialité privacyPolicy: Politique de confidentialité
createdOnDevice : Créé sur votre appareil createdOnDevice : Créé sur votre appareil
openSourceTransparent : Open source et transparent openSourceTransparent : Open source et transparent
hostedInEU : Hébergé dans l'UE hostedInEU : Hébergé dans l'UE
share: Recommander

View File

@ -25,3 +25,4 @@ privacyPolicy: Privacy Policy
createdOnDevice: Creato sul tuo dispositivo createdOnDevice: Creato sul tuo dispositivo
openSourceTransparent: Open source e trasparente openSourceTransparent: Open source e trasparente
hostedInEU: Server nell'UE hostedInEU: Server nell'UE
share: Raccomandare

View File

@ -25,3 +25,4 @@ privacyPolicy: Personvernerklæring
createdOnDevice: Laget på enheten din createdOnDevice: Laget på enheten din
openSourceTransparent: Åpen kildekode og gjennomsiktig openSourceTransparent: Åpen kildekode og gjennomsiktig
hostedInEU: Driftet i EU hostedInEU: Driftet i EU
share: Anbefale

View File

@ -24,4 +24,5 @@ iAcceptThe: Ik accepteer het
privacyPolicy: Privacybeleid privacyPolicy: Privacybeleid
createdOnDevice: Aangemaakt op uw apparaat createdOnDevice: Aangemaakt op uw apparaat
openSourceTransparent: Open source en transparant openSourceTransparent: Open source en transparant
hostedInEU: Gehost in de EU hostedInEU: Gehost in de EU
share: Aanbevelen

View File

@ -24,4 +24,5 @@ iAcceptThe: Jag godtar
privacyPolicy: integritetspolicyn privacyPolicy: integritetspolicyn
createdOnDevice: Skapad på din enhet createdOnDevice: Skapad på din enhet
openSourceTransparent: Öppen källkod och transparent openSourceTransparent: Öppen källkod och transparent
hostedInEU: Drivs från EU hostedInEU: Drivs från EU
share: Rekommendera