1 line
3.3 KiB
JavaScript
1 line
3.3 KiB
JavaScript
"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([["5638"],{8801:function(e,t,a){a.r(t),a.d(t,{default:()=>c,frontMatter:()=>r,metadata:()=>n,assets:()=>u,toc:()=>o,contentTitle:()=>d});var n=JSON.parse('{"id":"features/default-template-language","title":"Default Template/Language","description":"When the app is loaded, by default, the last used language is selected.","source":"@site/docs/features/default-template-language.mdx","sourceDirName":"features","slug":"/features/default-template-language","permalink":"/docs/features/default-template-language","draft":false,"unlisted":false,"editUrl":"https://github.com/live-codes/livecodes/tree/develop/docs/docs/features/default-template-language.mdx","tags":[],"version":"current","frontMatter":{},"sidebar":"docsSidebar","previous":{"title":"Internationalization (i18n)","permalink":"/docs/features/i18n"},"next":{"title":"Assets","permalink":"/docs/features/assets"}}'),l=a("5893"),s=a("65");let r={},d="Default Template/Language",u={},o=[{value:"Related",id:"related",level:2}];function i(e){let t={a:"a",code:"code",h1:"h1",h2:"h2",header:"header",li:"li",p:"p",ul:"ul",...(0,s.a)(),...e.components};return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(t.header,{children:(0,l.jsx)(t.h1,{id:"default-templatelanguage",children:"Default Template/Language"})}),"\n",(0,l.jsxs)(t.p,{children:["When the app is loaded, by default, the last used ",(0,l.jsx)(t.a,{href:"/docs/languages/",children:"language"})," is selected."]}),"\n",(0,l.jsxs)(t.p,{children:["The app can also be configured to load a default ",(0,l.jsx)(t.a,{href:"/docs/features/templates#user-templates",children:"user template"}),"."]}),"\n",(0,l.jsx)(t.p,{children:"If you do not already have any user templates, save any loaded project as template:"}),"\n",(0,l.jsx)(t.p,{children:"Project menu \u2192 Save as \u2192 Template."}),"\n",(0,l.jsx)(t.p,{children:'Then, in the user templates screen (Project menu \u2192 New ... \u2192 My Templates), find your template and click "Set as default".'}),"\n",(0,l.jsx)(t.p,{children:'If you wish to clear that selection, find the default template in user templates and click "unset".'}),"\n",(0,l.jsxs)(t.p,{children:["If you want to temporarily not load the default template/language add the ",(0,l.jsx)(t.a,{href:"/docs/configuration/query-params",children:"query param"})," ",(0,l.jsx)(t.code,{children:"no-defaults"}),"."]}),"\n",(0,l.jsxs)(t.p,{children:["Example: ",(0,l.jsx)(t.a,{href:"https://livecodes.io?no-defaults",children:"https://livecodes.io?no-defaults"})]}),"\n",(0,l.jsx)(t.h2,{id:"related",children:"Related"}),"\n",(0,l.jsxs)(t.ul,{children:["\n",(0,l.jsx)(t.li,{children:(0,l.jsx)(t.a,{href:"/docs/features/templates",children:"Templates"})}),"\n",(0,l.jsx)(t.li,{children:(0,l.jsx)(t.a,{href:"/docs/configuration/query-params",children:"Query params"})}),"\n"]})]})}function c(e={}){let{wrapper:t}={...(0,s.a)(),...e.components};return t?(0,l.jsx)(t,{...e,children:(0,l.jsx)(i,{...e})}):i(e)}},65:function(e,t,a){a.d(t,{Z:function(){return d},a:function(){return r}});var n=a(7294);let l={},s=n.createContext(l);function r(e){let t=n.useContext(s);return n.useMemo(function(){return"function"==typeof e?e(t):{...t,...e}},[t,e])}function d(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(l):e.components||l:r(e.components),n.createElement(s.Provider,{value:t},e.children)}}}]); |