{"id":20916003,"url":"https://github.com/indico/indico-plugin-example","last_synced_at":"2025-04-19T20:27:05.932Z","repository":{"id":20866040,"uuid":"24152988","full_name":"indico/indico-plugin-example","owner":"indico","description":"example plugin for the new indico plugin system","archived":false,"fork":false,"pushed_at":"2018-09-13T14:05:14.000Z","size":302,"stargazers_count":2,"open_issues_count":2,"forks_count":3,"subscribers_count":13,"default_branch":"master","last_synced_at":"2025-03-29T12:51:26.090Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","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/indico.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":"2014-09-17T16:32:28.000Z","updated_at":"2025-01-04T19:33:43.000Z","dependencies_parsed_at":"2022-08-30T16:01:04.672Z","dependency_job_id":null,"html_url":"https://github.com/indico/indico-plugin-example","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/indico%2Findico-plugin-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/indico%2Findico-plugin-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/indico%2Findico-plugin-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/indico%2Findico-plugin-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/indico","download_url":"https://codeload.github.com/indico/indico-plugin-example/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249793905,"owners_count":21326626,"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-18T16:19:17.692Z","updated_at":"2025-04-19T20:27:05.889Z","avatar_url":"https://github.com/indico.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Internationalization\n\n### Server-side\n\nInternationalization of Indico plugins is fully supported and, like Indico, relies on [Babel](http://babel.pocoo.org).\n\nOnced you've finished developing your plugin, in order to extract plugin strings to be translated:\n\n```console\n$ pybabel extract -o indico_example/translations/messages.pot indico_example -F babel.cfg\n$ pybabel extract -o indico_example/translations/messages-js.pot indico_example --no-default-keywords -k 'gettext' -k 'ngettext:1,2' -k '$T' -F babel-js.cfg\n```\n\nThen in order to add a new language (in this case, `de_DE`):\n\n```console\n$ pybabel init -l de_DE -i indico_example/translations/messages.pot -d indico_example/translations/\n```\n\nEvery time there are changes to the `*.pot` file (extracted strings), you will want to update its localized counterparts:\n\n```console\n$ pybabel update -i indico_example/translations/messages.pot -l de_DE -d indico_example/translations\n```\n\nBefore packaging/running the plugin, you'll have to compile the `*.po` files.\n\n```console\n$ pybabel compile -d indico_example/translations/\n```\n### JavaScript (client)\n\n```console\n$ pybabel init -i indico_example/translations/messages-js.pot -l de_DE -d indico_example/translations -D messages-js\n$ pybabel update -i indico_example/translations/messages-js.pot -l de_DE -d indico_example/translations -D messages-js\n```\n\nNo compilation of `*.po` files is needed when it comes to JavaScript.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Findico%2Findico-plugin-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Findico%2Findico-plugin-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Findico%2Findico-plugin-example/lists"}