{"size": 536, "ext": "js", "max_stars_repo_path": "themes/theme-cards-flow/helpers/translate.js", "max_stars_repo_name": "jhasubhash/gallery", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "themes/theme-cards-flow/helpers/translate.js", "max_issues_repo_name": "jhasubhash/gallery", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "themes/theme-cards-flow/helpers/translate.js", "max_forks_repo_name": "jhasubhash/gallery", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 22.3333333333, "max_line_length": 68, "alphanum_fraction": 0.4664179104}
"use strict";
module.exports = (config, text) => {
    /*
     see config.json
     ...
     "translate": {
        "photos": "Fotos",
        "photo": "Foto",
        "albums": "Alben",
        "album": "FoAlbumto",
        "videos": "Filme",
        "video": "Film"
    }
    ...
    <div class="summary">{{translate @root.settings summary}}</div>
    ...
    */
    try {
        Object.entries(config.translate).forEach(([key, value]) => {
            text = text.replace(key, value)
        });
    } catch (e) {}
    return text
}