{"id":18929405,"url":"https://github.com/thecodingmachine/html.utils.i18nweblibrary","last_synced_at":"2026-03-16T14:30:17.701Z","repository":{"id":5692011,"uuid":"6902475","full_name":"thecodingmachine/html.utils.i18nweblibrary","owner":"thecodingmachine","description":"This implementation of a Weblibrary will load different JS files based on the current language used. Useful to load translation files in JS.","archived":false,"fork":false,"pushed_at":"2018-05-23T09:26:33.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"3.0","last_synced_at":"2025-02-16T12:30:27.471Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/thecodingmachine.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-11-28T13:35:08.000Z","updated_at":"2015-01-08T10:55:07.000Z","dependencies_parsed_at":"2022-07-21T13:45:08.004Z","dependency_job_id":null,"html_url":"https://github.com/thecodingmachine/html.utils.i18nweblibrary","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thecodingmachine%2Fhtml.utils.i18nweblibrary","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thecodingmachine%2Fhtml.utils.i18nweblibrary/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thecodingmachine%2Fhtml.utils.i18nweblibrary/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thecodingmachine%2Fhtml.utils.i18nweblibrary/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thecodingmachine","download_url":"https://codeload.github.com/thecodingmachine/html.utils.i18nweblibrary/tar.gz/refs/heads/3.0","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239927823,"owners_count":19719835,"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-08T11:32:26.227Z","updated_at":"2026-03-16T14:30:17.660Z","avatar_url":"https://github.com/thecodingmachine.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"I18nWebLibrary\n==============\n\nThis special kind of [WebLibrary](http://mouf-php.com/packages/mouf/html.utils.weblibrarymanager/README.md)\nwill load different Javascript files based on the current locale.\n\nHow does it work?\n-----------------\n\nYou simply put a [lang] placeholder in the file name you want to load.\n\nFor instance:\n\n`javascript/messages-[lang].js`\n\nIf the current locale used is French, the file requested will be `javascript/messages-fr.js`.\nIf the current locale used is German, the file requested will be `javascript/messages-de.js`...\nIf the current locale used is the default one, the file requested will be `javascript/messages-default.js`.\n\nThe locale is decided thanks to the `$languageDetection` property of `I18nWebLibrary`.\nThis property must point to a class implementing [Fine's LanguageDetectionInterface interface](http://mouf-php.com/packages/mouf/utils.i18n.fine/doc/tutorial.md).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthecodingmachine%2Fhtml.utils.i18nweblibrary","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthecodingmachine%2Fhtml.utils.i18nweblibrary","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthecodingmachine%2Fhtml.utils.i18nweblibrary/lists"}