{"id":26045789,"url":"https://github.com/bitfertig/wmlang.js","last_synced_at":"2026-02-25T17:05:48.396Z","repository":{"id":57108532,"uuid":"297792789","full_name":"Bitfertig/wmlang.js","owner":"Bitfertig","description":"Translate months and weekdays.","archived":false,"fork":false,"pushed_at":"2020-11-18T15:42:28.000Z","size":9,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-04-20T13:35:34.465Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Bitfertig.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-09-22T23:01:32.000Z","updated_at":"2020-11-18T15:42:30.000Z","dependencies_parsed_at":"2022-08-21T04:30:36.674Z","dependency_job_id":null,"html_url":"https://github.com/Bitfertig/wmlang.js","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bitfertig%2Fwmlang.js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bitfertig%2Fwmlang.js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bitfertig%2Fwmlang.js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bitfertig%2Fwmlang.js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Bitfertig","download_url":"https://codeload.github.com/Bitfertig/wmlang.js/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242461386,"owners_count":20131982,"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":"2025-03-07T20:47:38.177Z","updated_at":"2025-10-26T11:38:51.482Z","avatar_url":"https://github.com/Bitfertig.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# wmlang.js\n\nTranslate weekdays and months with \"Intl\", which is included by your browser.\n\n\n## Demo\n\nhttp://tools.bitfertig.de/wmlang.js/\n\n\n## Install\n\n```bash\nnpm i @dipser/wmlang.js\n```\n\n\n## Usage\n\n```html\n\u003cscript type=\"module\"\u003e\nimport { month, weekday } from '@dipser/wmlang.js';\nconsole.log( weekday(1, 'de') ); // =\u003e Montag\nconsole.log( month(1, 'de') ); // =\u003e Januar\n\u003c/script\u003e\n```\n\n\n## How it works\n\n```javascript\nfunction month(month, locale = 'en') {\n    let intl = new Intl.DateTimeFormat(locale, { month: 'long' });\n    return intl.format( new Date(1970, Number(month) - 1, 1) );\n}\nmonth(2, 'de'); // =\u003e Februar\n```\n\n\n## More\n* [npm package](https://www.npmjs.com/package/@dipser/wmlang.js)\n* [twitter](https://twitter.com/dipser)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitfertig%2Fwmlang.js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbitfertig%2Fwmlang.js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitfertig%2Fwmlang.js/lists"}