MCPcopy Create free account
hub / github.com/OpenSignLabs/OpenSign / saveLanguageInLocal

Function saveLanguageInLocal

apps/OpenSign/src/constant/Utils.js:3329–3332  ·  view source on GitHub ↗
(i18n)

Source from the content-addressed store, hash-verified

3327
3328//function to get current laguage and set it in local
3329export const saveLanguageInLocal = (i18n) => {
3330 const detectedLanguage = i18n.language || "en";
3331 localStorage.setItem("i18nextLng", detectedLanguage);
3332};
3333
3334// function to get default signature of current user from `contracts_Signature` class
3335export const getDefaultSignature = async (objectId) => {

Callers 5

handleLogoutFunction · 0.90
logOutUserFunction · 0.90
handleServerUrlFunction · 0.90
clearStorageFunction · 0.90
handlelogoutFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected