Edit the Project's Language Combination

How to edit the language combination of the Speak project file.

Buy Now All Posts

How Agent Works

Agent is the stack that handles the multi-language feature of this project file. By default the project file is set to have English as the primary language and Spanish as the secondary one. You can change those settings and even adding additional languages.

When users visit this website, Agent will look at the browser language and try to match it with the correct version of that website. When the browser language is not supported Agent will deliver the primary language. 

Examples: If users from Spain visit this website, Agent will look at the language of their browser (Which is likely going to be in Spanish) and deliver the Spanish version of this website. The same logic applies to English users.

If a user have his browser set to Italian, Agent will deliver the primary version of the website since Italian is not a supported language. 

Edit the Language Combination

You can change the default language combination and even add  a third language to this project. Lets go step by step to change the language combo to German as a primary language and French as a secondary.

1. Open the Site Stile Partial and locate the Agent Swatch in the features section

2. Click on it and edit in the inspector the supported languages to "de,fr". Also edit the Language setting to your primary language, for this example it will be German.

3. Click on the Lang Redirect stack en set it to French. This will automatically redirect French users to the French version of the website. Note, as soon as you will click on the redirect child stack the swatch will close itself but the inspector sidebar will let you edit it.

4. Open the Lang Box Partial and change the language of the Lang Rule to your secondary language for this example will be French.

5. Edit the language switcher in the mobile and desktop menu and in the footer changing both labels and links to the new languages.

6. Edit the Agent macros in the Menu, Footer, Buttons, Form and other places where you see this syntax Home. Following our example this would become %lang(de:Startseite,fr:Accueil)%

7. Edit the SEO common partial and the other SEO settings you find in the Pen Stack of each page marked SEO following the same logic you used in the previous steps.


Search
calendar-2
Period

Privacy Policy

Twee enamel pin copper mug post-ironic before they sold out literally pop-up. Vape tumblr cornhole semiotics migas, jianbing microdosing swag activated charcoal skateboard man bun pinterest.  Portland offal gastropub locavore kinfolk. Cronut enamel pin green juice chillwave lomo adaptogen hella hell of gastropub.

Vape tumblr cornhole semiotics migas, jianbing microdosing swag activated charcoal skateboard man bun pinterest.  Portland offal gastropub locavore kinfolk. Cronut enamel pin green juice chillwave lomo adaptogen hella hell of gastropub.

Twee enamel pin copper mug post-ironic before they sold out literally pop-up. Vape tumblr cornhole semiotics migas, jianbing microdosing swag activated charcoal skateboard man bun pinterest. 

Includes:

  • Twee enamel pin copper mug post-ironic before they sold out literally pop-up. 
  • Vape tumblr cornhole semiotics migas, jianbing. 
  • Microdosing swag activated charcoal skateboard man bun pinterest.  
  • Portland offal gastropub locavore kinfolk. 
  • Cronut enamel pin green juice chillwave lomo adaptogen hella hell of gastropub.


Terms & Conditions

Twee enamel pin copper mug post-ironic before they sold out literally pop-up. Vape tumblr cornhole semiotics migas, jianbing microdosing swag activated charcoal skateboard man bun pinterest.  Portland offal gastropub locavore kinfolk. Cronut enamel pin green juice chillwave lomo adaptogen hella hell of gastropub.

Vape tumblr cornhole semiotics migas, jianbing microdosing swag activated charcoal skateboard man bun pinterest.  Portland offal gastropub locavore kinfolk. Cronut enamel pin green juice chillwave lomo adaptogen hella hell of gastropub.

Twee enamel pin copper mug post-ironic before they sold out literally pop-up. Vape tumblr cornhole semiotics migas, jianbing microdosing swag activated charcoal skateboard man bun pinterest. 

Includes:

  • Twee enamel pin copper mug post-ironic before they sold out literally pop-up. 
  • Vape tumblr cornhole semiotics migas, jianbing. 
  • Microdosing swag activated charcoal skateboard man bun pinterest.  
  • Portland offal gastropub locavore kinfolk. 
  • Cronut enamel pin green juice chillwave lomo adaptogen hella hell of gastropub.