Skip to content

Commit

Permalink
bump i18
Browse files Browse the repository at this point in the history
Signed-off-by: Johan Haals <[email protected]>
  • Loading branch information
jhaals committed May 25, 2023
1 parent e23fe5e commit f8ee760
Show file tree
Hide file tree
Showing 8 changed files with 18 additions and 17 deletions.
2 changes: 1 addition & 1 deletion website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"@fortawesome/react-fontawesome": "^0.2.0",
"@mui/material": "^5.13.1",
"file-saver": "^2.0.5",
"i18next": "^21.9.2",
"i18next": "^22.5.0",
"i18next-browser-languagedetector": "^7.0.1",
"i18next-http-backend": "^2.2.0",
"openpgp": "^5.8.0",
Expand Down
2 changes: 1 addition & 1 deletion website/src/createSecret/CreateSecret.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ const CreateSecret = () => {
rows="4"
autoFocus={true}
onKeyDown={onKeyDown}
placeholder={t('create.inputSecretPlaceholder')}
placeholder={t<string>('create.inputSecretPlaceholder')}
inputProps={{ spellCheck: 'false', 'data-gramm': 'false' }}
/>
<Grid container justifyContent="center" marginTop={2}>
Expand Down
2 changes: 1 addition & 1 deletion website/src/createSecret/Upload.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ const Upload = () => {
}
return (
<Grid>
{isFileTooLarge && <Error message={t('upload.fileTooLarge')} />}
{isFileTooLarge && <Error message={t<string>('upload.fileTooLarge')} />}
<Error message={error} onClick={() => setError('')} />
<form onSubmit={handleSubmit(onSubmit)}>
<div {...getRootProps()}>
Expand Down
2 changes: 1 addition & 1 deletion website/src/displaySecret/DisplaySecret.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ const EnterDecryptionKey = ({
autoFocus
name="decryptionKey"
id="decryptionKey"
placeholder={t('display.inputDecryptionKeyPlaceholder')}
placeholder={t<string>('display.inputDecryptionKeyPlaceholder')}
label={t('display.inputDecryptionKeyLabel')}
value={tempPassword}
error={invalidPassword}
Expand Down
1 change: 1 addition & 0 deletions website/src/i18n.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ i18n
},

appendNamespaceToMissingKey: true,
returnNull: false,
});

export default i18n;
2 changes: 1 addition & 1 deletion website/src/shared/Attribution.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export const Attribution = () => {
return (
<Typography variant="body2" color="textSecondary" align="center">
{t('attribution.translatedBy')}{' '}
<Link href={t('attribution.translatorLink')}>
<Link href={t<string>('attribution.translatorLink')}>
{t('attribution.translatorName')}
</Link>
</Typography>
Expand Down
12 changes: 6 additions & 6 deletions website/src/shared/Features.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,28 +27,28 @@ export const Features = () => {
</Box>
</Grid>
<Feature title={t('features.featureEndToEndTitle')} icon={faLock}>
{t('features.featureEndToEndText')}
<>{t('features.featureEndToEndText')}</>
</Feature>
<Feature title={t('features.featureSelfDestructionTitle')} icon={faBomb}>
{t('features.featureSelfDestructionText')}
<>{t('features.featureSelfDestructionText')}</>
</Feature>
<Feature title={t('features.featureOneTimeTitle')} icon={faDownload}>
{t('features.featureOneTimeText')}
<>{t('features.featureOneTimeText')}</>
</Feature>
<Feature
title={t('features.featureSimpleSharingTitle')}
icon={faShareAlt}
>
{t('features.featureSimpleSharingText')}
<>{t('features.featureSimpleSharingText')}</>
</Feature>
<Feature
title={t('features.featureNoAccountsTitle')}
icon={faUserAltSlash}
>
{t('features.featureNoAccountsText')}
<>{t('features.featureNoAccountsText')}</>
</Feature>
<Feature title={t('features.featureOpenSourceTitle')} icon={faCodeBranch}>
{t('features.featureOpenSourceText')}
<>{t('features.featureOpenSourceText')}</>
</Feature>
</Grid>
);
Expand Down
12 changes: 6 additions & 6 deletions website/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1837,7 +1837,7 @@
core-js-pure "^3.0.0"
regenerator-runtime "^0.13.4"

"@babel/runtime@^7.1.2", "@babel/runtime@^7.10.2", "@babel/runtime@^7.11.2", "@babel/runtime@^7.12.5", "@babel/runtime@^7.16.3", "@babel/runtime@^7.17.2", "@babel/runtime@^7.18.3", "@babel/runtime@^7.19.4", "@babel/runtime@^7.20.6", "@babel/runtime@^7.21.0", "@babel/runtime@^7.5.5", "@babel/runtime@^7.8.4", "@babel/runtime@^7.8.7":
"@babel/runtime@^7.1.2", "@babel/runtime@^7.10.2", "@babel/runtime@^7.11.2", "@babel/runtime@^7.12.5", "@babel/runtime@^7.16.3", "@babel/runtime@^7.18.3", "@babel/runtime@^7.19.4", "@babel/runtime@^7.20.6", "@babel/runtime@^7.21.0", "@babel/runtime@^7.5.5", "@babel/runtime@^7.8.4", "@babel/runtime@^7.8.7":
version "7.21.0"
resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.21.0.tgz#5b55c9d394e5fcf304909a8b00c07dc217b56673"
integrity sha512-xwII0//EObnq89Ji5AKYQaRYiW/nZ3llSv29d49IuxPhKbtJoLP+9QUUZ4nVragQVtaVGeZrpB+ZtG/Pdy/POw==
Expand Down Expand Up @@ -6604,12 +6604,12 @@ i18next-http-backend@^2.2.0:
dependencies:
cross-fetch "3.1.5"

i18next@^21.9.2:
version "21.9.2"
resolved "https://registry.yarnpkg.com/i18next/-/i18next-21.9.2.tgz#3f7c5594393eb27117c1db4c38f5ec766e68de0e"
integrity sha512-00fVrLQOwy45nm3OtC9l1WiLK3nJlIYSljgCt0qzTaAy65aciMdRy9GsuW+a2AtKtdg9/njUGfRH30LRupV7ZQ==
i18next@^22.5.0:
version "22.5.0"
resolved "https://registry.yarnpkg.com/i18next/-/i18next-22.5.0.tgz#16d98eba7c748ab183a36505046b5b91f87e989b"
integrity sha512-sqWuJFj+wJAKQP2qBQ+b7STzxZNUmnSxrehBCCj9vDOW9RDYPfqCaK1Hbh2frNYQuPziz6O2CGoJPwtzY3vAYA==
dependencies:
"@babel/runtime" "^7.17.2"
"@babel/runtime" "^7.20.6"

[email protected]:
version "0.4.24"
Expand Down

0 comments on commit f8ee760

Please sign in to comment.