Initializes the language manager by loading translations from files.
The type of initialization (YAML or JSON).
The directory containing language files.
The list of language codes to load.