pull

abstract fun pull(locale: String, file: Path): ConfigLoaderBuilder<T>

Resolves a locale-specific resource and sets the output path.

Looks for {resourceRoot}{locale}.{extension} in the classpath, falling back to {resourceRoot}en.{extension} by default. Requires fromResource to be called first with a directory root path.

Parameters

locale

the locale string, e.g. "ja_JP" or "en_US"

file

the output path where the config file will be written


open fun pull(file: Path): ConfigLoaderBuilder<T>

Resolves a localized resource using the configured language.

By default this uses the current JVM locale and falls back to en. Requires fromResource to be called first with a directory root path.

Parameters

file

the base output path for the selected config file