{"id":13526543,"url":"https://github.com/excessive/i18n","last_synced_at":"2025-09-10T06:34:38.874Z","repository":{"id":149595648,"uuid":"41580699","full_name":"excessive/i18n","owner":"excessive","description":"Internationalization functions for LÖVE.","archived":false,"fork":false,"pushed_at":"2015-08-29T04:34:37.000Z","size":108,"stargazers_count":25,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-05-13T20:31:50.901Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Lua","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/excessive.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-08-29T04:34:10.000Z","updated_at":"2025-03-10T19:45:25.000Z","dependencies_parsed_at":"2023-04-06T11:24:00.002Z","dependency_job_id":null,"html_url":"https://github.com/excessive/i18n","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/excessive/i18n","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/excessive%2Fi18n","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/excessive%2Fi18n/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/excessive%2Fi18n/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/excessive%2Fi18n/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/excessive","download_url":"https://codeload.github.com/excessive/i18n/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/excessive%2Fi18n/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274422261,"owners_count":25282123,"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-09-10T02:00:12.551Z","response_time":83,"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":"2024-08-01T06:01:31.257Z","updated_at":"2025-09-10T06:34:38.825Z","avatar_url":"https://github.com/excessive.png","language":"Lua","funding_links":[],"categories":["Utilities"],"sub_categories":[],"readme":"# i18n\n\nInternationalization functions for LÖVE. We might rename it to something more interesting later.\n\n# Specifying a language\n\nIt's just a Lua table.\n\nSeveral real-world examples can be found [here, in our LD33 entry](https://github.com/excessive/ludum-dare-33/tree/master/assets/lang).\n\n```lua\nreturn {\n  locale = \"en\",\n  base   = \"assets/sounds/en\",\n  quotes = { \"\\\"\", \"\\\"\" }, -- NYI, but planned. Several languages use different quotes.\n  strings = {\n    [\"main/play\"]    = { text = \"Play\", audio = \"play.ogg\" },\n    [\"main/options\"] = { text = \"Options\" },\n    -- etc\n  }\n}\n```\n\n# Usage\n```lua\nlocal lang = require \"i18n\"\n\n-- load all your language files. the filenames are of no significance.\nlang:load(\"languages/en.lua\")\n\n-- set default locale if a string is not available in the current one.\n-- Note: will not return audio for fallback language (that would be really weird).\nlang:set_fallback(\"en\")\n\n-- set locale to source data from\nlang:set_locale(\"en\")\n\n-- translated string, path to audio, and whether the string is from fallback.\n-- can also be written as lang:get(\"key\")\nlang \"main/play\" -- =\u003e \"Play\", \"assets/sounds/en/play.ogg\", false\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fexcessive%2Fi18n","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fexcessive%2Fi18n","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fexcessive%2Fi18n/lists"}