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}.yml{root}en_US.yml(fallback)
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_US")
file
the output path where the resolved resource will be copied