{"id":30660008,"url":"https://github.com/halsten-dev/lokyn","last_synced_at":"2025-08-31T13:42:32.664Z","repository":{"id":310081951,"uuid":"1038588246","full_name":"halsten-dev/lokyn","owner":"halsten-dev","description":"Lokyn is a simple lib to allow for easy localized applications developpement","archived":false,"fork":false,"pushed_at":"2025-08-15T15:53:40.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-08-15T17:19:56.197Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","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/halsten-dev.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-08-15T13:33:33.000Z","updated_at":"2025-08-15T15:53:43.000Z","dependencies_parsed_at":"2025-08-15T17:20:02.096Z","dependency_job_id":"0e71d90a-35be-4fc3-952e-868d9fbb0a40","html_url":"https://github.com/halsten-dev/lokyn","commit_stats":null,"previous_names":["halsten-dev/lokyn"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/halsten-dev/lokyn","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/halsten-dev%2Flokyn","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/halsten-dev%2Flokyn/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/halsten-dev%2Flokyn/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/halsten-dev%2Flokyn/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/halsten-dev","download_url":"https://codeload.github.com/halsten-dev/lokyn/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/halsten-dev%2Flokyn/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272988787,"owners_count":25026959,"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","status":"online","status_checked_at":"2025-08-31T02:00:09.071Z","response_time":79,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-08-31T13:42:31.944Z","updated_at":"2025-08-31T13:42:32.651Z","avatar_url":"https://github.com/halsten-dev.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# lokyn\nLokyn is a simple lib to allow for easy localized applications developpement.\nHeavily inspired by Fyne lang package bit with more of a standalone philosophy.\n\n## main.go\n```go\npackage main\n\nimport (\n\t\"embed\"\n\t\"fmt\"\n\t\"github.com/halsten-dev/lokyn\"\n\t\"log\"\n)\n\n//go:embed translations\nvar translations embed.FS\n\nfunc main() {\n\tlokyn.Init()\n\n\terr := lokyn.AddTranslationFS(translations, \"translations\")\n\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\tlokyn.SetLanguage(\"en\")\n\n\tfmt.Println(lokyn.L(\"translate\"))\n\tfmt.Println(lokyn.P(\"apple\", 2))\n}\n\n```\n\n## projects structure\n```\nproject root /\n  translations /\n    en.json\n    fr.json\n```\n\n## en.json\n```json\n{\n  \"translation\": \"translation\", \n  \"apple\": {\n\t\"one\": \"apple\",\n    \"other\": \"apples\"\n  }\n}\n```\n\n## fr.json\n```json\n{\n  \"translation\": \"traduction\",\n  \"apple\": {\n\t\"one\": \"pomme\",\n\t\"other\": \"pommes\"\n  }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhalsten-dev%2Flokyn","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhalsten-dev%2Flokyn","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhalsten-dev%2Flokyn/lists"}