{"id":19300561,"url":"https://github.com/stefanwimmer128/sprintf-formatter","last_synced_at":"2025-02-24T01:26:50.033Z","repository":{"id":40838692,"uuid":"254363030","full_name":"stefanwimmer128/sprintf-formatter","owner":"stefanwimmer128","description":"Sprintf Formatter - use sprintf for formating vue-i18n translations","archived":false,"fork":false,"pushed_at":"2023-01-06T06:41:47.000Z","size":571,"stargazers_count":0,"open_issues_count":11,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-04-26T12:43:08.389Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://yarn.pm/sprintf-formatter","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/stefanwimmer128.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-04-09T12:18:23.000Z","updated_at":"2020-09-07T08:05:18.000Z","dependencies_parsed_at":"2023-02-05T13:31:46.844Z","dependency_job_id":null,"html_url":"https://github.com/stefanwimmer128/sprintf-formatter","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stefanwimmer128%2Fsprintf-formatter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stefanwimmer128%2Fsprintf-formatter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stefanwimmer128%2Fsprintf-formatter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stefanwimmer128%2Fsprintf-formatter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stefanwimmer128","download_url":"https://codeload.github.com/stefanwimmer128/sprintf-formatter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240402379,"owners_count":19795718,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-09T23:15:11.810Z","updated_at":"2025-02-24T01:26:49.993Z","avatar_url":"https://github.com/stefanwimmer128.png","language":"JavaScript","readme":"# Sprintf Formatter\n\nUse [sprintf](https://github.com/alexei/sprintf.js/) for formating vue-i18n translations\n\n## Install\n\n``` bash\nyarn add sprintf-formatter\nnpm i sprintf-formatter\n```\n\n``` html\n\u003cscript src=\"https://unpkg.com/sprintf-formatter@2.0.1\"\u003e\u003c/script\u003e\n```\n\n## Usage\n\n``` js\nimport VueI18n from \"vue-i18n\";\nimport SprintfFormatter from \"sprintf-formatter\";\n\nconst i18n = new VueI18n({\n    formatter: new SprintfFormatter(),\n    /* ... */\n});\n\nnew Vue({\n    i18n,\n    /* ... */\n});\n```\n\nor with `nuxt-i18n`:\n\n``` js\n/* plugins/vue-i18n.js */\n\nimport SprintfFormatter from \"sprintf-formatter\";\n\nexport default function vueI18n() {\n    return {\n        formatter: new SprintfFormatter(),\n        /* ... */\n    };\n}\n```\n\n``` js\n/* nuxt.config.js */\n\nexport default {\n    modules: [\n        [\n            \"nuxt-i18n\",\n            {\n                vueI18n: \"@/plugins/vue-i18n.js\",\n                /* ... */\n            },\n        ],\n        /* ... */\n    ],\n    /* ... */\n}\n```\n\n## License\n\nISC License\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstefanwimmer128%2Fsprintf-formatter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstefanwimmer128%2Fsprintf-formatter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstefanwimmer128%2Fsprintf-formatter/lists"}