{"id":19401369,"url":"https://github.com/onthegosystems/clean_localization","last_synced_at":"2025-04-24T07:30:41.060Z","repository":{"id":57164614,"uuid":"203526507","full_name":"OnTheGoSystems/clean_localization","owner":"OnTheGoSystems","description":null,"archived":false,"fork":false,"pushed_at":"2023-04-26T10:39:57.000Z","size":96,"stargazers_count":3,"open_issues_count":4,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-21T16:53:01.412Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","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/OnTheGoSystems.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":"2019-08-21T07:03:15.000Z","updated_at":"2020-07-27T13:39:15.000Z","dependencies_parsed_at":"2022-09-01T10:22:04.660Z","dependency_job_id":null,"html_url":"https://github.com/OnTheGoSystems/clean_localization","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/OnTheGoSystems%2Fclean_localization","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OnTheGoSystems%2Fclean_localization/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OnTheGoSystems%2Fclean_localization/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OnTheGoSystems%2Fclean_localization/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/OnTheGoSystems","download_url":"https://codeload.github.com/OnTheGoSystems/clean_localization/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250582793,"owners_count":21453914,"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-10T11:18:14.183Z","updated_at":"2025-04-24T07:30:40.693Z","avatar_url":"https://github.com/OnTheGoSystems.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CleanLocalization\n## Simple and minimalistic Ruby localization\n\n# Translation resource example (main.yml)\n\n```yaml\nuser:\n  name: \n    en: User name\n    uk: Im`я користувача\nheader:\n  title:\n    en: \"Hi %{name}!\"  \n    uk: \"Вітаю %{name}!\"  \n```\n\n# Usage example\n```ruby\n# Define resources path\nCleanLocalization::Config.base_path = Pathname(\"#{path}/resources\")\n\n# Use client\nCleanLocalization::Client.new('fr').translate(\"user.name\")\n# =\u003e \"User name\"\nCleanLocalization::Client.new('uk').translate(\"user.name\")\n# =\u003e \"Im`я користувача\"\n\nCleanLocalization::Client.new('uk').translate(\"header.title\", name: \"John Snow\")\n# =\u003e \"Вітаю John Snow!\"\n\nCleanLocalization::Client.new('en').translate(\"header.title\", name: \"John Snow\")\n# =\u003e \"Hi John Snow!\"\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fonthegosystems%2Fclean_localization","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fonthegosystems%2Fclean_localization","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fonthegosystems%2Fclean_localization/lists"}