{"id":16758213,"url":"https://github.com/foo123/localizer","last_synced_at":"2025-03-16T07:25:45.920Z","repository":{"id":58076234,"uuid":"528120616","full_name":"foo123/Localizer","owner":"foo123","description":"Simple class to localize texts for PHP, JavaScript, Python","archived":false,"fork":false,"pushed_at":"2022-08-28T14:00:20.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-22T19:48:43.742Z","etag":null,"topics":["i18n","l10n","localization"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/foo123.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":"2022-08-23T18:40:52.000Z","updated_at":"2022-12-17T20:50:38.000Z","dependencies_parsed_at":"2022-09-01T16:21:25.394Z","dependency_job_id":null,"html_url":"https://github.com/foo123/Localizer","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/foo123%2FLocalizer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/foo123%2FLocalizer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/foo123%2FLocalizer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/foo123%2FLocalizer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/foo123","download_url":"https://codeload.github.com/foo123/Localizer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243838335,"owners_count":20356016,"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":["i18n","l10n","localization"],"created_at":"2024-10-13T04:04:30.408Z","updated_at":"2025-03-16T07:25:45.894Z","avatar_url":"https://github.com/foo123.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Localizer\n\nSimple class to localize texts for PHP, JavaScript, Python\n\n**Example**\n\n```php\n$l10n = new Localizer();\n\n// setup supported locales\n$l10n-\u003elocale('en', []);\n$l10n-\u003elocale('el', [\n    'I want to say {0}' =\u003e 'Θέλω να πώ {0}',\n    'hello to you' =\u003e 'γειά σε σένα',\n    'hello to all' =\u003e 'γειά σε όλους'\n]);\n\n// set current locale\n$l10n-\u003elocale('el', true);\n\necho 'Localizer::VERSION = ' . Localizer::VERSION . PHP_EOL;\necho $l10n-\u003elocale() . PHP_EOL;\n\necho $l10n-\u003ecl('hello to you', 'γειά σε σένα') . PHP_EOL;\necho $l10n-\u003ecl('hello to all', 'γειά σε όλους') . PHP_EOL;\n\necho $l10n-\u003el('hello to you') . PHP_EOL;\necho $l10n-\u003el('hello to all') . PHP_EOL;\n\necho $l10n-\u003el('I want to say {0}', [$l10n-\u003el('hello to you')]) . PHP_EOL;\necho $l10n-\u003el('I want to say {0}', [$l10n-\u003el('hello to all')]) . PHP_EOL;\n\necho $l10n-\u003eln(1, 'hello to you', 'hello to all') . PHP_EOL;\necho $l10n-\u003eln(2, 'hello to you', 'hello to all') . PHP_EOL;\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffoo123%2Flocalizer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffoo123%2Flocalizer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffoo123%2Flocalizer/lists"}