Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Dave de Moel 122 posts 574 karma points c-trib
    Mar 26, 2019 @ 14:43
    Dave de Moel
    0

    Multilingual support in Umbraco Api

    I have a question regarding the new Multilingual support in Umbraco 8.

    For a website we are making we need to publish an Api with multilingual support, however I don't seem to be able to get specific language variants in Umbraco Api.

    Currently I am getting the homepage as such:

    var homePage = Umbraco.ContentAtRoot().FirstOrDefault(x => x.IsDocumentType(HomePage.ModelTypeAlias)) as HomePage;
    

    This gives me the homepage, including an culture array, but not the content with for the different cultures. It also seems the PublishedContentModel misses the option to set the culture.

    Does anyone know how I can get the culture specific content?

Please Sign in or register to post replies

Write your reply to:

Draft