{"id":18513447,"url":"https://github.com/elixir-gettext/expo","last_synced_at":"2025-04-06T01:10:51.574Z","repository":{"id":37955611,"uuid":"475534435","full_name":"elixir-gettext/expo","owner":"elixir-gettext","description":"Low-level Elixir parser for GNU Gettext files (PO, POT, MO).","archived":false,"fork":false,"pushed_at":"2025-02-15T09:27:26.000Z","size":369,"stargazers_count":13,"open_issues_count":0,"forks_count":7,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-30T00:11:06.354Z","etag":null,"topics":["elixir","gettext","mo","parser","po","pot"],"latest_commit_sha":null,"homepage":"","language":"Elixir","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/elixir-gettext.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2022-03-29T16:45:42.000Z","updated_at":"2025-02-15T09:27:30.000Z","dependencies_parsed_at":"2023-12-04T15:24:51.304Z","dependency_job_id":"5c780a29-1937-4b4a-af59-cca352380027","html_url":"https://github.com/elixir-gettext/expo","commit_stats":{"total_commits":178,"total_committers":8,"mean_commits":22.25,"dds":0.5056179775280899,"last_synced_commit":"761b35d385d76ef8469cc8dde37b4270471d568d"},"previous_names":[],"tags_count":18,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elixir-gettext%2Fexpo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elixir-gettext%2Fexpo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elixir-gettext%2Fexpo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elixir-gettext%2Fexpo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/elixir-gettext","download_url":"https://codeload.github.com/elixir-gettext/expo/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247419861,"owners_count":20936012,"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":["elixir","gettext","mo","parser","po","pot"],"created_at":"2024-11-06T15:38:27.284Z","updated_at":"2025-04-06T01:10:51.559Z","avatar_url":"https://github.com/elixir-gettext.png","language":"Elixir","readme":"# Expo\n\n[![hex.pm badge](https://img.shields.io/badge/Package%20on%20hex.pm-informational)](https://hex.pm/packages/expo)\n[![Documentation badge](https://img.shields.io/badge/Documentation-ff69b4)][docs]\n[![.github/workflows/branch_main.yml](https://github.com/elixir-gettext/expo/actions/workflows/branch_main.yml/badge.svg)](https://github.com/elixir-gettext/expo/actions/workflows/branch_main.yml)\n[![Coverage Status](https://coveralls.io/repos/github/elixir-gettext/expo/badge.svg?branch=main)](https://coveralls.io/github/elixir-gettext/expo?branch=main)\n\n\u003e Low-level [GNU gettext][gettext] file handling (for `.po`, `.pot`, and `.mo`\n\u003e files), including writing and parsing.\n\nSee [the documentation][docs].\n\nFor a full Gettext integration, see the [Gettext library][elixir-gettext].\n\n## Usage\n\nExpo can *parse* PO, POT, and MO files from [GNU gettext][gettext]:\n\n```elixir\nExpo.PO.parse_file!(\"priv/gettext/default.pot\")\n#=\u003e %Expo.Messages{...}\n```\n\nIt can also *write* well-formed PO, POT, and MO files:\n\n```elixir\n\"priv/gettext/default.pot\"\n|\u003e Expo.PO.parse_file!()\n|\u003e Expo.PO.compose()\n|\u003e then(fn content -\u003e File.write!(\"priv/gettext/copy.pot\", content) end)\n```\n\nThis library can also parse [`Plural-Form`\nheaders](https://www.gnu.org/software/gettext/manual/html_node/Plural-forms.html)\nin PO or POT files, and ships with a built-in list of languages and their plural\nforms. You can find which plural form to use for a given *amount* by using\n`Expo.PluralForms.index/2`:\n\n```elixir\n{:ok, plural_form} = Expo.PluralForms.plural_form(\"de\")\n\nExpo.PluralForms.index(plural_form, 1)\n#=\u003e 0\nExpo.PluralForms.index(plural_form, 213)\n#=\u003e 1\n```\n\n## License\n\nCopyright 2015 Plataformatec Copyright 2020 Dashbit 2022 JOSHMARTIN GmbH\n\n  Licensed under the Apache License, Version 2.0 (the \"License\");\n  you may not use this file except in compliance with the License.\n  You may obtain a copy of the License at:\n\n  \u003e \u003chttp://www.apache.org/licenses/LICENSE-2.0\u003e\n\n  Unless required by applicable law or agreed to in writing, software\n  distributed under the License is distributed on an \"AS IS\" BASIS,\n  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n  See the License for the specific language governing permissions and\n  limitations under the License.\n\n[docs]: https://hexdocs.pm/expo\n[elixir-gettext]: https://github.com/elixir-gettext/gettext\n[gettext]: https://www.gnu.org/software/gettext/\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felixir-gettext%2Fexpo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Felixir-gettext%2Fexpo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felixir-gettext%2Fexpo/lists"}