Set folder names for different languages

I want to have a language langhref = “en-gb”.

However I want to be on the website as:

website.com/gb/

Anybody know if this is possible? When I declare the languages in my config.toml file I can’t seem to find a way to set the directory it will go in?

[languages]
[languages.en-gb]
baseURL = “https://example.com
languageName = “British English”
[languages.en-us]
languageName = “American English”

Thanks!

You can set “contentDir” per language. See

you can set languageCode under your language definition.

.Site.LanguageCode

a string representing the language as defined in the site configuration. This is mostly used to populate the RSS feeds with the right language code.

[languages]
+ [languages.gb]
baseURL = “https://example.com”
languageName = “British English”
+ languageCode = "en-gb"

[languages.en-us]
languageName = “American English”