Set a default locale (language) with Neos Flow

With Neos Flow, you have great possibilities when it comes to creating translatable labels and content for your application. In Flow the documentation it’s called Internationalization – I18n in short.

This is done with XLF files, a XML structured format. They are located in a folder with the identifier of the locale/language you have translated it into.

By default, the locale is set to “English” so locale labels are expected to be in a folder identified by en. If your applications main language is not English, you can change that with a setting in a Settings.yaml file.

Create or open your Settings.yaml file and enter the following to set a different locale.

Neos:
Flow:
i18n:
defaultLocale: 'da'

This sets “Danish” (identified by da) as defaultLocale.