How to use the @node-red/util.i18n._ function in @node-red/util

To help you get started, we’ve selected a few @node-red/util examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github node-red / node-red / packages / node_modules / @node-red / runtime / lib / storage / localfilesystem / projects / defaultFileSet.js View on Github external
"package.json": function(project) {
        var package = {
            "name": project.name,
            "description": project.summary||i18n._("storage.localfilesystem.projects.summary"),
            "version": "0.0.1",
            "dependencies": {},
            "node-red": {
                "settings": {
                }
            }
        };
        if (project.files) {
            if (project.files.flow) {
                package['node-red'].settings.flowFile = project.files.flow;
                package['node-red'].settings.credentialsFile = project.files.credentials;
            }
        }
        return JSON.stringify(package,"",4);
    },
    "README.md": function(project) {
github node-red / node-red / packages / node_modules / @node-red / runtime / lib / storage / localfilesystem / projects / defaultFileSet.js View on Github external
"README.md": function(project) {
        var content = project.name+"\n"+("=".repeat(project.name.length))+"\n\n";
        if (project.summary) {
            content += project.summary+"\n\n";
        }
        content += i18n._("storage.localfilesystem.projects.readme");
        return content;
    },
    ".gitignore": function() { return "*.backup" ;}