Open
Description
This is more of a question to understand how to structure fluent files in a real life project.
Assuming, one resource is basically the contents of a single file (on disk), is there any way to have a namespace for resources. For example: I have the following two files.
messages.ftl
validations.ftl
Now both the files exports a variable called message
// messages.ftl
message = "Hello {$name}"
// validations.ftl
message = "Hi {$name}"
I create a resource for both the files.
let res = new FluentResource(readSync('./messages.ftl'));
let res2 = new FluentResource(readSync('./validations.ftl'));
bundle.addResource(res);
bundle.addResource(res2);
Now, how do I get the message
from the resource created via validations.ftl
?
Metadata
Metadata
Assignees
Labels
No labels