Skip to content

The t&c portion of the SingUp page is not translated #2846

Closed
@harmanbatheja15

Description

@harmanbatheja15

What is your operating system?

Mac OS

Actual Behavior

The T&C is not being translated

Screenshot 2024-01-06 at 6 44 30 AM

Expected Behavior

The T&C should be translated.

Screenshot 2024-01-06 at 6 45 04 AM

Steps to reproduce

Steps:

  1. Add "Warning": "By signing up, you agree to the p5.js Editor's <0>Terms of Use</0> and <1>Privacy Policy.</1>" in translations/locales/en-US/translations.json file, inside the SignupView section.
  2. Update the import statement in the SignupView.jsx file.
  3. Add the updated Translation code in the SignupView.jsx file.

Snippet:

"SignupView": {
    "Title": "p5.js Web Editor | Signup",
    "Description": "Sign Up",
    "Or": "Or",
    "AlreadyHave": "Already have an account?",
    "Login": "Log In",
    "Warning": "By signing up, you agree to the p5.js Editor's <0>Terms of Use</0> and <1>Privacy Policy.</1>"
  },
import { useTranslation, Trans } from 'react-i18next';
<Trans
    i18nKey="SignupView.Warning"
    components={[
        <Link to="/terms-of-use">Terms of use</Link>,
        <Link to="/privacy-policy">Privacy Policy</Link>
    ]}
/>

Metadata

Metadata

Labels

Area: TranslationFor localization of the p5.js editor or contributor documentationType:TaskTasks tied specifically to developer operations and maintenance

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions