pull
Resolves a locale-specific resource file and sets the output path.
Given a resource root directory (set via fromResource), this method tries:
{root}{locale}.{extension}{root}{language}.{extension}{root}en.{extension}(fallback by default)
If neither is found, an IllegalStateException is thrown. The resolved resource path and the given file are stored for use during load.
Example:
Yacla.loader<MyConfig>()
.fromResource("/assets/mymod/config/")
.pull("ja_JP", configFile)
.parser(YamlParser())
.load()Content copied to clipboard
Parameters
locale
the locale string (e.g. "ja_JP", "en")
file
the output path where the resolved resource will be copied
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