init

fun init(type: InitType, dir: File, langs: List<String>)

Initializes the language manager by loading translations from files.

Parameters

type

The type of initialization (YAML or JSON).

dir

The directory containing language files.

langs

The list of language codes to load.