mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-04-21 03:22:11 +00:00
added missing modal button labels and \input placeholder translation keys
This commit is contained in:
parent
d692d09041
commit
8768b9ced3
6 changed files with 19 additions and 19 deletions
6
package-lock.json
generated
6
package-lock.json
generated
|
|
@ -36,7 +36,7 @@
|
||||||
"react-i18next": "^15.1.3",
|
"react-i18next": "^15.1.3",
|
||||||
"react-is": "18.3.1",
|
"react-is": "18.3.1",
|
||||||
"spatial-navigation-polyfill": "github:Stremio/spatial-navigation#64871b1422466f5f45d24ebc8bbd315b2ebab6a6",
|
"spatial-navigation-polyfill": "github:Stremio/spatial-navigation#64871b1422466f5f45d24ebc8bbd315b2ebab6a6",
|
||||||
"stremio-translations": "github:Stremio/stremio-translations#212e9e01226b1f2f24c9d0374556088b71d5f21a",
|
"stremio-translations": "github:Stremio/stremio-translations#1f0b73ff5605b1afde18636f82b8fd45d299a426",
|
||||||
"url": "0.11.4",
|
"url": "0.11.4",
|
||||||
"use-long-press": "^3.2.0"
|
"use-long-press": "^3.2.0"
|
||||||
},
|
},
|
||||||
|
|
@ -13405,8 +13405,8 @@
|
||||||
},
|
},
|
||||||
"node_modules/stremio-translations": {
|
"node_modules/stremio-translations": {
|
||||||
"version": "1.44.12",
|
"version": "1.44.12",
|
||||||
"resolved": "git+ssh://git@github.com/Stremio/stremio-translations.git#212e9e01226b1f2f24c9d0374556088b71d5f21a",
|
"resolved": "git+ssh://git@github.com/Stremio/stremio-translations.git#1f0b73ff5605b1afde18636f82b8fd45d299a426",
|
||||||
"integrity": "sha512-z56Y3X/6Aery5GWuOmbLfeicQI9zSE5kodNxIvYU0ovAIHAcJeTAGoqeMhMq88IXm8n1XB/lqIcau8rTCvj0IQ==",
|
"integrity": "sha512-1jvv4VRWNiFl+GivV6fXpq9QSIpElMUzGMG3jFxkJqvvZeYZpUsK/D4Bd9lR0jBSPYhwpLMZgFoGHWx3ABg+Ig==",
|
||||||
"license": "MIT"
|
"license": "MIT"
|
||||||
},
|
},
|
||||||
"node_modules/string_decoder": {
|
"node_modules/string_decoder": {
|
||||||
|
|
|
||||||
|
|
@ -41,7 +41,7 @@
|
||||||
"react-i18next": "^15.1.3",
|
"react-i18next": "^15.1.3",
|
||||||
"react-is": "18.3.1",
|
"react-is": "18.3.1",
|
||||||
"spatial-navigation-polyfill": "github:Stremio/spatial-navigation#64871b1422466f5f45d24ebc8bbd315b2ebab6a6",
|
"spatial-navigation-polyfill": "github:Stremio/spatial-navigation#64871b1422466f5f45d24ebc8bbd315b2ebab6a6",
|
||||||
"stremio-translations": "github:Stremio/stremio-translations#212e9e01226b1f2f24c9d0374556088b71d5f21a",
|
"stremio-translations": "github:Stremio/stremio-translations#1f0b73ff5605b1afde18636f82b8fd45d299a426",
|
||||||
"url": "0.11.4",
|
"url": "0.11.4",
|
||||||
"use-long-press": "^3.2.0"
|
"use-long-press": "^3.2.0"
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -51,7 +51,7 @@ const AddonDetailsModal = ({ transportUrl, onCloseRequest }) => {
|
||||||
const modalButtons = React.useMemo(() => {
|
const modalButtons = React.useMemo(() => {
|
||||||
const cancelButton = {
|
const cancelButton = {
|
||||||
className: styles['cancel-button'],
|
className: styles['cancel-button'],
|
||||||
label: 'Cancel',
|
label: t('BUTTON_CANCEL'),
|
||||||
props: {
|
props: {
|
||||||
onClick: (event) => {
|
onClick: (event) => {
|
||||||
if (typeof onCloseRequest === 'function') {
|
if (typeof onCloseRequest === 'function') {
|
||||||
|
|
@ -69,7 +69,7 @@ const AddonDetailsModal = ({ transportUrl, onCloseRequest }) => {
|
||||||
addonDetails.remoteAddon.content.content.manifest.behaviorHints.configurable ?
|
addonDetails.remoteAddon.content.content.manifest.behaviorHints.configurable ?
|
||||||
{
|
{
|
||||||
className: styles['configure-button'],
|
className: styles['configure-button'],
|
||||||
label: 'Configure',
|
label: t('ADDON_CONFIGURE'),
|
||||||
props: {
|
props: {
|
||||||
onClick: (event) => {
|
onClick: (event) => {
|
||||||
platform.openExternal(transportUrl.replace('manifest.json', 'configure'));
|
platform.openExternal(transportUrl.replace('manifest.json', 'configure'));
|
||||||
|
|
@ -88,7 +88,7 @@ const AddonDetailsModal = ({ transportUrl, onCloseRequest }) => {
|
||||||
const toggleButton = addonDetails.localAddon !== null ?
|
const toggleButton = addonDetails.localAddon !== null ?
|
||||||
{
|
{
|
||||||
className: styles['uninstall-button'],
|
className: styles['uninstall-button'],
|
||||||
label: 'Uninstall',
|
label: t('ADDON_UNINSTALL'),
|
||||||
props: {
|
props: {
|
||||||
onClick: (event) => {
|
onClick: (event) => {
|
||||||
core.transport.dispatch({
|
core.transport.dispatch({
|
||||||
|
|
@ -115,7 +115,7 @@ const AddonDetailsModal = ({ transportUrl, onCloseRequest }) => {
|
||||||
{
|
{
|
||||||
|
|
||||||
className: styles['install-button'],
|
className: styles['install-button'],
|
||||||
label: 'Install',
|
label: t('ADDON_INSTALL'),
|
||||||
props: {
|
props: {
|
||||||
onClick: (event) => {
|
onClick: (event) => {
|
||||||
core.transport.dispatch({
|
core.transport.dispatch({
|
||||||
|
|
|
||||||
|
|
@ -56,7 +56,7 @@ const ColorInput = ({ className, value, dataset, onChange, ...props }) => {
|
||||||
};
|
};
|
||||||
return [
|
return [
|
||||||
{
|
{
|
||||||
label: 'Select',
|
label: t('SELECT'),
|
||||||
props: {
|
props: {
|
||||||
'data-autofocus': true,
|
'data-autofocus': true,
|
||||||
onClick: selectButtonOnClick
|
onClick: selectButtonOnClick
|
||||||
|
|
|
||||||
|
|
@ -311,7 +311,7 @@ const Intro = ({ queryParams }) => {
|
||||||
ref={emailRef}
|
ref={emailRef}
|
||||||
className={styles['credentials-text-input']}
|
className={styles['credentials-text-input']}
|
||||||
type={'email'}
|
type={'email'}
|
||||||
placeholder={'Email'}
|
placeholder={t('EMAIL')}
|
||||||
value={state.email}
|
value={state.email}
|
||||||
onChange={emailOnChange}
|
onChange={emailOnChange}
|
||||||
onSubmit={emailOnSubmit}
|
onSubmit={emailOnSubmit}
|
||||||
|
|
@ -320,7 +320,7 @@ const Intro = ({ queryParams }) => {
|
||||||
ref={passwordRef}
|
ref={passwordRef}
|
||||||
className={styles['credentials-text-input']}
|
className={styles['credentials-text-input']}
|
||||||
type={'password'}
|
type={'password'}
|
||||||
placeholder={'Password'}
|
placeholder={t('PASSWORD')}
|
||||||
value={state.password}
|
value={state.password}
|
||||||
onChange={passwordOnChange}
|
onChange={passwordOnChange}
|
||||||
onSubmit={passwordOnSubmit}
|
onSubmit={passwordOnSubmit}
|
||||||
|
|
@ -332,30 +332,30 @@ const Intro = ({ queryParams }) => {
|
||||||
ref={confirmPasswordRef}
|
ref={confirmPasswordRef}
|
||||||
className={styles['credentials-text-input']}
|
className={styles['credentials-text-input']}
|
||||||
type={'password'}
|
type={'password'}
|
||||||
placeholder={'Confirm Password'}
|
placeholder={t('PASSWORD_CONFIRM')}
|
||||||
value={state.confirmPassword}
|
value={state.confirmPassword}
|
||||||
onChange={confirmPasswordOnChange}
|
onChange={confirmPasswordOnChange}
|
||||||
onSubmit={confirmPasswordOnSubmit}
|
onSubmit={confirmPasswordOnSubmit}
|
||||||
/>
|
/>
|
||||||
<Checkbox
|
<Checkbox
|
||||||
ref={termsRef}
|
ref={termsRef}
|
||||||
label={'I have read and agree with the Stremio'}
|
label={t('READ_AND_AGREE')}
|
||||||
link={'Terms and conditions'}
|
link={t('TOS')}
|
||||||
href={'https://www.stremio.com/tos'}
|
href={'https://www.stremio.com/tos'}
|
||||||
checked={state.termsAccepted}
|
checked={state.termsAccepted}
|
||||||
onChange={toggleTermsAccepted}
|
onChange={toggleTermsAccepted}
|
||||||
/>
|
/>
|
||||||
<Checkbox
|
<Checkbox
|
||||||
ref={privacyPolicyRef}
|
ref={privacyPolicyRef}
|
||||||
label={'I have read and agree with the Stremio'}
|
label={t('READ_AND_AGREE')}
|
||||||
link={'Privacy Policy'}
|
link={t('PRIVACY_POLICY')}
|
||||||
href={'https://www.stremio.com/privacy'}
|
href={'https://www.stremio.com/privacy'}
|
||||||
checked={state.privacyPolicyAccepted}
|
checked={state.privacyPolicyAccepted}
|
||||||
onChange={togglePrivacyPolicyAccepted}
|
onChange={togglePrivacyPolicyAccepted}
|
||||||
/>
|
/>
|
||||||
<Checkbox
|
<Checkbox
|
||||||
ref={marketingRef}
|
ref={marketingRef}
|
||||||
label={'I agree to receive marketing communications from Stremio'}
|
label={t('MARKETING_AGREE')}
|
||||||
checked={state.marketingAccepted}
|
checked={state.marketingAccepted}
|
||||||
onChange={toggleMarketingAccepted}
|
onChange={toggleMarketingAccepted}
|
||||||
/>
|
/>
|
||||||
|
|
|
||||||
|
|
@ -25,13 +25,13 @@ const PasswordResetModal = ({ email, onCloseRequest }) => {
|
||||||
return [
|
return [
|
||||||
{
|
{
|
||||||
className: styles['cancel-button'],
|
className: styles['cancel-button'],
|
||||||
label: 'Cancel',
|
label: t('BUTTON_CANCEL'),
|
||||||
props: {
|
props: {
|
||||||
onClick: onCloseRequest
|
onClick: onCloseRequest
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: 'Send',
|
label: t('SEND'),
|
||||||
props: {
|
props: {
|
||||||
onClick: goToPasswordReset
|
onClick: goToPasswordReset
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue