Copied to clipboard

Flag this post as spam?

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


  • wizardnet 3 posts 22 karma points
    Oct 09, 2013 @ 10:18
    wizardnet
    0

    How to get all languages?

    How can I get list of available languages using Razor tags? 

     

    Thanks for any help!

  • Lars-Erik Aabech 349 posts 1100 karma points MVP 8x c-trib
    Oct 16, 2013 @ 08:23
    Lars-Erik Aabech
    1
    <ul>
    @foreach(var lang in umbraco.cms.businesslogic.language.Language.GetAllAsList())
    {
        <li>@lang.CultureAlias, @lang.FriendlyName</li>
    }
    </ul>
    
Please Sign in or register to post replies

Write your reply to:

Draft