Latin instead of cerilic Serbian SR language

I have multilingual site with papermod but issue is that for Serbian language is cerilic only but I need latin version, so for example instead 9 април, 2022 it should write 9 april, 2022. Can I add somewhere latin version of Serbian language?

You can use the sr-Latn locale…

defaultContentLanguage = 'sr-latn'
defaultContentLanguageInSubdir = true

[languages.sr-latn]
contentDir = 'content/sr'
languageCode = 'sr-Latn'
languageDirection = 'ltr'
languageName = 'Serbian'
weight = 1

[languages.de]
contentDir = 'content/de'
languageCode = 'de-DE'
languageDirection = 'ltr'
languageName = 'Deutsch'
weight = 2

But your URLs will be something like:

http://localhost:1314/sr-latn/posts/post-3/

Currently you cannot control the locale separately from language key. The languageCode in the configuration does not affect localization.

Thank you very much :slight_smile: . I hanged to sr-latn and it works.

Did not see that on the code table but ok I am new to Hugo :grin:. Have an amazing day.

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.