[DOCU-2284] Configure locales for the fallback site Created: 12/Nov/21  Updated: 18/Nov/21  Resolved: 12/Nov/21

Status: Closed
Project: Documentation
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Neutral
Reporter: Martin Drápela Assignee: Martin Drápela
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

Problem
trying to configure multilanguage content. I used this documentation here: https://docs.magnolia-cms.com/product-docs/6.2/Administration/Language/Language-configuration.html and did these steps:

  • configuration of system languages
  • enabling multilanguage authoring (in /config/server/i18n/authoring)
  • enabling i18n content support (in /config/server/i18n/content)
  • definition of locales in the site (adding i18n/locales/... to my site with class info.magnolia.cms.i18n.DefaultI18nContentSupport -> single tree)
  • set i18n = true on content type properties
     
    See my dummy-app.yaml
     
    !content-type:dummy
    name: dummy-app
    label: Dummy
    icon: icon-content-app
    subApps:            
      detail:
        form:
          properties:
            name:
              i18n: true
            title:
              i18n: true
     
    I get a language dropdown while editing websites but no one when I add same data from another workspace eg. in my dummy-app.
     

Update

documentation: https://docs.magnolia-cms.com/product-docs/6.2/Developing/API/Delivery-API/Requesting-localized-content-with-the-delivery-endpoint.html
I had to configure locales for the fallback site or extend a site definition with locales. While editing structured content (not pages) the locales fo the fallback site will be used while showing the language toggle.


Generated at Mon Feb 12 01:25:42 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.