resource
Parse inline FTL source and add it to the bundle.
Throws IllegalArgumentException if parsing fails. Use addResource if you need a Result return type.
Parse and add an FTL file from disk (JVM only).
Throws IllegalArgumentException if the file is missing or fails to parse. Available only on JVM — Native targets should read the file content into a String and pass it to the String overload of resource.