path
Sets the path for the CDN configuration based on the provided function.
This method allows customization of the path generation by accepting a lambda function that takes a language string and returns the corresponding path as a string.
Return
The Builder instance with the updated path, enabling method chaining.
Parameters
A lambda function that generates a path string when provided with a language code.
Defines the path generation logic for localization files within the CDN configuration.
This variable is a lambda function that takes a language code as input and returns the corresponding file path as a string. The default implementation appends ".json" to the supplied language code to generate the path.
Return
The generated file path, typically in the format <language>.json
.