Skip to content

Commit

Permalink
Translate all literals
Browse files Browse the repository at this point in the history
  • Loading branch information
oegea committed Jul 23, 2023
1 parent b99cf3e commit 3612750
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 16 deletions.
28 changes: 14 additions & 14 deletions src/components/organisms/UserDetailsRightPanel/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,9 @@ const UserDetailsRightPanel = ({ user }) => {

{isBackendMode() && user.isPrivateKeyStoredLocally &&
<div>
<SectionTitle title={'Increased security mode'} buttons={[{
<SectionTitle title={t('profile.Increased security mode')} buttons={[{
label: t('profile.Print access kit'),
onClick: () => printElementById('access-kit', 'Passager Access Kit'),
onClick: () => printElementById('access-kit', t('profile.Passager access kit')),
}, {
label: t('profile.Disable improved security mode'),
onClick: () => {
Expand All @@ -126,16 +126,16 @@ const UserDetailsRightPanel = ({ user }) => {
<div style={{'display': 'none'}}>
<div id="access-kit">
<p>
This access key belongs to <strong>{user.email || '-'}</strong> ({localStorage.getItem('documentsUrl')}).
{t('profile.This access kit belongs to')} <strong>{user.email || '-'}</strong> ({localStorage.getItem('documentsUrl')}).
</p>
<p>
You will need your user private key when logging in on a new device. Store this document on a safe place.
{t('profile.You will need your user private key when logging in on a new device. Store this document on a safe place')}
</p>
<p>
<strong>QR codes:</strong>
<strong>{t('profile.QR codes')}:</strong>
</p>
<p>
When accessing from a mobile phone, you can scan the following QR codes to provide your private key.
{t('profile.When accessing from a mobile phone, you can scan the following QR codes to provide your private key')}
</p>
<div style={{border: '5px dashed #ccc'}}>
<div style={{display: 'flex', justifyContent: 'space-around', padding: '20px'}}>
Expand All @@ -146,7 +146,7 @@ const UserDetailsRightPanel = ({ user }) => {
totalFragments: 4,
fragmentNumber: 1
})} />
QR Number 1 of 4
{t('profile.QR number')} 1
</div>

<div style={{'display': 'flex', 'flexDirection': 'column', 'gap': '10px', 'textAlign': 'center', 'fontWeight': 'bold'}}>
Expand All @@ -156,7 +156,7 @@ const UserDetailsRightPanel = ({ user }) => {
totalFragments: 4,
fragmentNumber: 2
})} />
QR Number 2 of 4
{t('profile.QR number')} 2
</div>
</div>
<div style={{display: 'flex', justifyContent: 'space-around', padding: '20px'}}>
Expand All @@ -167,7 +167,7 @@ const UserDetailsRightPanel = ({ user }) => {
totalFragments: 4,
fragmentNumber: 3
})} />
QR Number 3 of 4
{t('profile.QR number')} 3
</div>
<div style={{'display': 'flex', 'flexDirection': 'column', 'gap': '10px', 'textAlign': 'center', 'fontWeight': 'bold'}}>
<QRCode value={createExportableFragment({
Expand All @@ -176,25 +176,25 @@ const UserDetailsRightPanel = ({ user }) => {
totalFragments: 4,
fragmentNumber: 4
})} />
QR Number 4 of 4
{t('profile.QR number')} 4
</div>
</div>
</div>

<p>
<strong>Master password:</strong>
<strong>{t('profile.Master password')}:</strong>
</p>
<p>
It is recommended to remember the master password and not writting it down anywhere. However, in case you feel more comfortable writting it down, you can do it here:
{t('profile.It is recommended to remember the master password and not writting it down anywhere. However, in case you feel more comfortable writting it down, you can do it here:')}
</p>

<div style={{border: '5px dashed #ccc', padding: '25px'}}>

</div>

<h1>Passager Private Key</h1>
<h1>{t('profile.Private key')}</h1>
<p>
If you prefer to not print this file, you can directly copy and paste the following text. In case of printing this document (which is recommended), you can skip this page.
{t('profile.If you prefer to not print this file, you can directly copy and paste the following text. In case of printing this document (which is recommended), you can skip this page')}
</p>
<p style={{wordBreak: 'break-all', border: '5px dashed #ccc', padding: '20px', fontSize: '12px'}}>
{user.encryptedPrivateKey}
Expand Down
12 changes: 11 additions & 1 deletion src/i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,17 @@
"The improved security mode is enabled. You will need to provide your private key when logging in on a new device": "The improved security mode is enabled. You will need to provide your private key when logging in on a new device.",
"Please download and print your access kit to be sure you do not lose access to your data": "Please download and print your access kit to be sure you do not lose access to your data.",
"Print access kit": "Print access kit",
"Disable improved security mode": "Disable improved security mode"
"Disable improved security mode": "Disable improved security mode",
"Passager access kit": "Passager access kit",
"This access kit belongs to": "This access kit belongs to",
"You will need your user private key when logging in on a new device. Store this document on a safe place": "You will need your user private key when logging in on a new device. Store this document on a safe place.",
"QR codes": "QR codes",
"When accessing from a mobile phone, you can scan the following QR codes to provide your private key": "When accessing from a mobile phone, you can scan the following QR codes to provide your private key.",
"QR number": "QR number",
"Master password": "Master password",
"It is recommended to remember the master password and not writting it down anywhere. However, in case you feel more comfortable writting it down, you can do it here:": "It is recommended to remember the master password and not writting it down anywhere. However, in case you feel more comfortable writting it down, you can do it here:",
"Private key": "Private key",
"If you prefer to not print this file, you can directly copy and paste the following text. In case of printing this document (which is recommended), you can skip this page": "If you prefer to not print this file, you can directly copy and paste the following text. In case of printing this document (which is recommended), you can skip this page."
},
"privacy": {
"Important privacy information": "Important privacy information",
Expand Down
12 changes: 11 additions & 1 deletion src/i18n/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,17 @@
"The improved security mode is enabled. You will need to provide your private key when logging in on a new device": "El modo de seguridad avanzada está habilitado. Necesitarás proporcionar tu clave privada cuando inicies sesión en un nuevo dispositivo.",
"Please download and print your access kit to be sure you do not lose access to your data": "Por favor, descarga e imprime tu kit de acceso para asegurarte de que no pierdes el acceso a tus datos.",
"Print access kit": "Imprimir kit de acceso",
"Disable improved security mode": "Desactivar modo de seguridad avanzada"
"Disable improved security mode": "Desactivar modo de seguridad avanzada",
"Passager access kit": "Kit de acceso de Passager",
"This access kit belongs to": "Este kit de acceso pertenece a",
"You will need your user private key when logging in on a new device. Store this document on a safe place": "Necesitarás tu clave privada de usuario cuando inicies sesión en un nuevo dispositivo. Almacena este documento en un lugar seguro.",
"QR codes": "Códigos QR",
"When accessing from a mobile phone, you can scan the following QR codes to provide your private key": "Cuando accedas desde un teléfono móvil, puedes escanear los siguientes códigos QR para proporcionar tu clave privada.",
"QR number": "QR número",
"Master password": "Contraseña maestra",
"It is recommended to remember the master password and not writting it down anywhere. However, in case you feel more comfortable writting it down, you can do it here:": "Se recomienda recordar la contraseña maestra y no escribirla en ningún sitio. Sin embargo, en caso de que te sientas más cómodo escribiéndola, puedes hacerlo aquí:",
"Private key": "Clave privada",
"If you prefer to not print this file, you can directly copy and paste the following text. In case of printing this document (which is recommended), you can skip this page": "Si prefieres no imprimir este archivo, puedes copiar y pegar directamente el siguiente texto. En caso de imprimir este documento (lo cual se recomienda), puedes saltarte esta página."
},
"privacy": {
"Important privacy information": "Información importante de privacidad",
Expand Down

1 comment on commit 3612750

@vercel
Copy link

@vercel vercel bot commented on 3612750 Jul 23, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

passager-password-manager – ./

passager-password-manager-oegea.vercel.app
passager-password-manager-git-main-oegea.vercel.app
cloud.passager.app

Please sign in to comment.