register
Registers a new language using resources.
Reads the language list from resources using ResourceLoader. The list should specify the available languages separated by '\n'. After reading the list, all languages from it will be read from resources as 'languages/?.toml' and saved to 'languagesFolder/?.toml'. Languages created or edited in the 'languagesFolder' will not be overwritten or deleted.
Default language is 'en_us'
Return
A CompletableFuture representing the completion of the registration process.
Parameters
The resource loader for reading language resources.
The folder where language files will be saved.
Registers a new language using crowdin.
This method works similarly to register, but it also uses crowdin as the default language source. Crowdin translations will be cached in 'languageFolder/.crowdin' for 3 days.
Return
A CompletableFuture representing the completion of the registration process.
Parameters
The crowdin project ID for translations.
The name of the language file in crowdin (null for default).
The resource loader for reading language resources.
The folder where language files will be saved.
Registers a new language using crowdin.
This method works similarly to register, but it also uses crowdin as the default language source. Crowdin translations will be cached in 'languageFolder/.crowdin' for 3 days.
Return
A CompletableFuture representing the completion of the registration process.
Parameters
The crowdin project zip URL.
The name of the language file in crowdin (null for default).
The resource loader for reading language resources.
The folder where language files will be saved.