{"id":18473748,"url":"https://github.com/yasinkuyu/localizationjs","last_synced_at":"2025-05-13T00:51:07.499Z","repository":{"id":58223146,"uuid":"46128176","full_name":"yasinkuyu/LocalizationJs","owner":"yasinkuyu","description":"Create multi-language structure with Javascript","archived":false,"fork":false,"pushed_at":"2015-11-18T12:58:28.000Z","size":38,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-17T06:55:31.102Z","etag":null,"topics":["i18n","localization","multilingual"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/yasinkuyu.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":"2015-11-13T14:58:40.000Z","updated_at":"2018-01-28T02:37:56.000Z","dependencies_parsed_at":"2022-08-31T02:00:51.306Z","dependency_job_id":null,"html_url":"https://github.com/yasinkuyu/LocalizationJs","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/yasinkuyu%2FLocalizationJs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yasinkuyu%2FLocalizationJs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yasinkuyu%2FLocalizationJs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yasinkuyu%2FLocalizationJs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yasinkuyu","download_url":"https://codeload.github.com/yasinkuyu/LocalizationJs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253850882,"owners_count":21973672,"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","localization","multilingual"],"created_at":"2024-11-06T10:26:15.098Z","updated_at":"2025-05-13T00:51:07.444Z","avatar_url":"https://github.com/yasinkuyu.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## LocalizationJs\nLocalizationJs is (native) Javascript base Localization library. Dynamically can define an unlimited number of languages. \n    \n### Install\n\n        bower install localization-js\n        \n\u003cscript type=\"text/javascript\" src=\"bower_components/localization-js/localization.min.js\"\u003e\u003c/script\u003e\n        \n###Simple Usage\n\n        // \u003cscript type=\"text/javascript\" src=\"bower_components/localization-js/localization.min.js\"\u003e\u003c/script\u003e\n        // Define language elements\n        var locales = {\n            \"tr_TR\": {\n                \"homepage\": \"Anasayfa\",\n                \"info\": \"Bilgi\",\n                \"help\": \"Yardım\"\n            },\n            \"en_US\": {\n                \"homepage\": \"Homepage\",\n                \"info\": \"Info\",\n                \"help\": \"Help\"\n            }\n        };\n        \n        var loc = new Localization();\n            loc.setLang(\"tr_TR\"); //default\n            loc.set(locales);\n            \n            console.log(loc.get(\"homepage\"));\n\n###Dynamically\n        \"tr_TR\": {\n             \"homepage\": \"Anasayfa\",\n             \"info\": \"Bilgi\",\n             \"help\": \"Yardım\"\n        },\n        \"en_US\": {\n             \"homepage\": \"Homepage\",\n             \"info\": \"Info\",\n             \"help\": \"Help\",\n             ....\n        },\n        \"en_GB\": {},\n        \"en_NZ\": {},\n        \"ar_EG: {}\n        \n        -\u003e loc.setLang(\"ar_EG\");\n\n###Language Codes \nhttps://msdn.microsoft.com/en-us/library/ms533052(v=vs.85).aspx\n\n###RTL Support (Right to Left)\n\n        \"ar_EG\": {\n            \"rtl\": true,\n             ...\n        } \n        \n        if(loc.get(\"rtl\"))\n        {\n           console.log(\"Right to left language\");\n        }\n\n##Contribution\nFork \u0026 Pull Request\n\n###License\nThe MIT License\n\nCreate multi-language structure with ASP.NET MVC\n\nhttps://github.com/yasinkuyu/Localization\n\nCreated 2015 Yasin Kuyu - @yasinkuyu\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyasinkuyu%2Flocalizationjs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyasinkuyu%2Flocalizationjs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyasinkuyu%2Flocalizationjs/lists"}