{"id":21768103,"url":"https://github.com/below/pluralloc","last_synced_at":"2025-04-13T15:40:48.786Z","repository":{"id":40411767,"uuid":"213752104","full_name":"below/PluralLoc","owner":"below","description":"A Sample for stringsdict. And \"99 Bottles of Beer on the Wall\" in Russian","archived":false,"fork":false,"pushed_at":"2024-09-18T19:29:56.000Z","size":33,"stargazers_count":2,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-27T06:34:42.830Z","etag":null,"topics":["beer","ios","localization","swift"],"latest_commit_sha":null,"homepage":null,"language":"Swift","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/below.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}},"created_at":"2019-10-08T20:53:54.000Z","updated_at":"2024-09-18T19:27:50.000Z","dependencies_parsed_at":"2024-11-26T15:17:37.872Z","dependency_job_id":null,"html_url":"https://github.com/below/PluralLoc","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/below%2FPluralLoc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/below%2FPluralLoc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/below%2FPluralLoc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/below%2FPluralLoc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/below","download_url":"https://codeload.github.com/below/PluralLoc/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248739844,"owners_count":21154247,"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":["beer","ios","localization","swift"],"created_at":"2024-11-26T13:33:34.401Z","updated_at":"2025-04-13T15:40:48.763Z","avatar_url":"https://github.com/below.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PluralLoc\nA Sample on how to localize plural strings in iOS. And \"99 Bottles of Beer on the Wall\" in Russian.\n\n## Background\n\nToday, in a code review I again saw something like this:\n\n```swift\nif number \u003e 1 {\n\t// use plural\n} else {\n\t// use singular\n}\n```\n\n**Don't do that**\n\nI am not sure if it was correct for the native language of the developer, it is wrong in most languages. But to the rescue, Apple provides a system to localize your plural forms, and this project is a sample for it.\n\n## Supported Languages\n\nCurrently, the following languages have been [implemented](Plural%20Loc/Localizable.xcstrings):\n\n- [x] Chinese (simplified)\n- [x] English\n- [x] Dutch\n- [x] French\n- [x] German\n- [x] Polish\n- [x] Romanian\n- [x] Russian\n- [x] Ukrainian\n\nYou are more than welcome to create a pull request for your language.\n\nP.S.: The Swift Playground contains the swift version of the \"99 Bottles Of Beer\" algorithm in Russian\n\nСлава Україні 🇺🇦 [Support Ukraine](https://war.ukraine.ua/support-ukraine/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbelow%2Fpluralloc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbelow%2Fpluralloc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbelow%2Fpluralloc/lists"}