Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions i18n/de.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,7 @@ Object.assign((typeof window === 'undefined' ? module.exports : window).i18n = (
JoinGroupText: 'Beitreten zu',
ChatText: 'Chat öffnen',
DownloadText: 'Delta Chat herunterladen',
OtherDeviceText: 'Tippe falls du Delta Chat auf einem anderen Gerät hast',
ScanQRText: 'Scanne um den Chat auf dem anderen Gerät zu öffnen',
},
});
2 changes: 2 additions & 0 deletions i18n/en.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,7 @@ Object.assign((typeof window === 'undefined' ? module.exports : window).i18n = (
JoinGroupText: 'Join',
ChatText: 'Open chat',
DownloadText: 'Download Delta Chat',
OtherDeviceText: 'Tap if you have Delta Chat on another device',
ScanQRText: 'Scan to open the chat on the other device',
},
});
4 changes: 3 additions & 1 deletion i18n/fr.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,10 @@ Object.assign((typeof window === 'undefined' ? module.exports : window).i18n = (
StepShareText: "Partage le lien généré sur n'importe quel canal",
ShareLinkText: 'Ouvre lien',
JoinText: 'Dit bonjour à',
JoinGroupText: 'Rejoine',
JoinGroupText: 'Rejoindre',
ChatText: 'Ouvrir discussion',
DownloadText: 'Télécharge Delta Chat',
OtherDeviceText: 'Appuyer si vous avez Delta Chat sur un autre appareil',
ScanQRText: "Scanner pour ouvrir la conversation sur l'autre appareil",
},
});
2 changes: 2 additions & 0 deletions i18n/ru.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ Object.assign((typeof window === 'undefined' ? module.exports : window).i18n = (
JoinGroupText: 'Присоединиться',
ChatText: 'Открыть чат',
DownloadText: 'Скачать Delta Chat',
OtherDeviceText: 'Tap if you have Delta Chat on another device',
ScanQRText: 'Scan to open the chat on the other device',
},
});

7 changes: 5 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
<script src="./qr.min.js"></script>
<script src="./i18n/i18next.min.js"></script>
<script src="./i18n/i18nextBrowserLanguageDetector.min.js"></script>
<script src="./i18n/de.js"></script>
<script src="./i18n/en.js"></script>
<script src="./i18n/fr.js"></script>
<script src="./i18n/ru.js"></script>
Expand Down Expand Up @@ -260,12 +261,12 @@ <h2>
</ol>

<details>
<summary>Tap if you have Delta Chat on another device</summary>
<summary class="other-device">Tap if you have Delta Chat on another device</summary>

<div id="qrcode"></div>

<p>
<i>Scan to open the chat on the other device</i>
<i class="scan-qr">Scan to open the chat on the other device</i>
</p>
</details>

Expand Down Expand Up @@ -346,6 +347,8 @@ <h2>
document.querySelector('#join').innerHTML = (searchParams.get("g") || searchParams.get("b")) ? i18next.t('JoinGroupText') : i18next.t('JoinText');
document.querySelector('#dc-link').innerHTML = i18next.t('ChatText');
document.querySelector('.download').innerHTML = i18next.t('DownloadText');
document.querySelector('.other-device').innerHTML = i18next.t('OtherDeviceText');
document.querySelector('.scan-qr').innerHTML = i18next.t('ScanQRText');
});
</script>
</body>
Expand Down
4 changes: 4 additions & 0 deletions ui-test-_localize.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@ Object.entries(require('fs').readdirSync(require('path').join(__dirname, 'i18n')

it('localizes chat', () => expect(page.locator('#dc-link')).toHaveText(t('ChatText')));

it('localizes other-device', () => expect(page.locator('.other-device')).toHaveText(t('OtherDeviceText')));

it('localizes scan-qr', () => expect(page.locator('.scan-qr')).toHaveText(t('ScanQRText')));

});

context('with info (group)', () => {
Expand Down
Loading