rp_st
04/02/2023, 4:39 PMrp_st
04/02/2023, 4:39 PMtsx
import React from "react";
import SuperTokens from "supertokens-auth-react";
SuperTokens.init({
languageTranslations: { // This object contains all translation related options
translations: { // These are the displayed translation strings for each language
// The property names define the language code of the translations
en: {
ERROR_NON_OPTIONAL: "<custom message here>", // for frontend validation error
"Field is not optional": "<custom message here>" // for mapping message returned from the backend
},
},
},
appInfo: {
appName: "...",
apiDomain: "...",
websiteDomain: "...",
},
recipeList: [
// ...
],
});
rp_st
04/03/2023, 4:01 PM