ReCoded-Org / pebble-work-capstone-project

1 stars 2 forks source link

Translation - Event View #80

Closed MayceAlazzawi closed 2 years ago

MayceAlazzawi commented 2 years ago

Task title Translation - Event View

Task description These steps may help you create the translations,

import { useTranslation } from "next-i18next";
const { t } = useTranslation("common");

you have to change the text into this format in this example: {t(signinPage.paragraph)}

Then you have to put this function on the page you are translating


export async function getStaticProps({ locale }) {
    return {
        props: {
            ...(await serverSideTranslations(locale, ["common"])),
            // Will be passed to the page component as props
        },
    };
}

NOTE: The translated text should be put inside common.json files Please check the landing page code if you need to see how Dilara did the translation there

github-actions[bot] commented 2 years ago

Branch i80-translation_-_event_view created!