{"id":20064153,"url":"https://github.com/pastebar/pastebar-localization","last_synced_at":"2025-07-21T08:32:46.059Z","repository":{"id":253167752,"uuid":"842672596","full_name":"PasteBar/pastebar-localization","owner":"PasteBar","description":null,"archived":false,"fork":false,"pushed_at":"2025-06-25T04:15:16.000Z","size":521,"stargazers_count":0,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-25T05:23:46.682Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"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/PasteBar.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-08-14T20:35:19.000Z","updated_at":"2025-06-25T04:15:20.000Z","dependencies_parsed_at":"2024-08-22T23:50:55.199Z","dependency_job_id":"054c7e6d-2afb-442e-b449-47c028e8c000","html_url":"https://github.com/PasteBar/pastebar-localization","commit_stats":null,"previous_names":["pastebar/pastebar-localization"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/PasteBar/pastebar-localization","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PasteBar%2Fpastebar-localization","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PasteBar%2Fpastebar-localization/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PasteBar%2Fpastebar-localization/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PasteBar%2Fpastebar-localization/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PasteBar","download_url":"https://codeload.github.com/PasteBar/pastebar-localization/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PasteBar%2Fpastebar-localization/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266267289,"owners_count":23902334,"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-13T13:45:02.887Z","updated_at":"2025-07-21T08:32:46.039Z","avatar_url":"https://github.com/PasteBar.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# PasteBar Localization Repository\n\nWelcome to the PasteBar localization repository! This repository contains all the YAML files used for internationalizing the PasteBar application. We appreciate contributions to help improve the existing translations or add new languages. Follow the steps below to get started.\n\n## How to Contribute\n\n### 1. Fork the Repository\n\nFirst, fork this repository to your GitHub account by clicking the \"Fork\" button in the top right corner of this page. This will create a copy of the repository under your GitHub account.\n\nRepository URL: [PasteBar Localization](https://github.com/PasteBar/pastebar-localization)\n\n### 2. Clone the Repository\n\nAfter forking the repository, clone it to your local machine using the following command:\n\n```bash\ngit clone https://github.com/your-username/pastebar-localization.git\n```\n\nReplace `your-username` with your GitHub username.\n\n### 3. Create a New Branch\n\nTo keep your contributions organized, create a new branch for your work. Use a descriptive branch name, such as `fix-german-translation` or `add-spanish-language`:\n\n```bash\ncd pastebar-localization\ngit checkout -b your-branch-name\n```\n\n### 4. Make Your Changes\n\n#### Correct Existing Translation\n\nIf you want to improve or correct an existing translation, navigate to the corresponding language folder (e.g., `de`, `fr`, etc.) and edit the YAML files.\n\nFor example, to update the German translation by editing the `common.yaml` file:\n\n```bash\nedit de/common.yaml\n```\n\nUse your favorite text editor to make the necessary changes. After making the necessary changes, save the file.\n\n#### Add a New Language\n\nTo add a completely new language, follow these steps:\n\n1. Copy the `en` folder to create a new folder for the language you want to add. Use the appropriate language code as the folder name.\n\n```bash\ncp -r en es-ES\n```\n\n1. Translate the content (values only) in the YAML files to the desired language inside all the `.yaml` files in the newly created folder.\n\nExample:\n\n```yaml\nDay: Día\nDays: Días\nMonth: Mes\nMonths: Meses\n```\n\n2. Ensure that the file structure and keys remain the same as in the `en` folder.\n\n### 5. Add Localization Support for Native Menus\n\nIf you are adding a new translation to the repository, make sure to also add a section for your language in the `services/translations/translations.yaml` file. This will ensure that native menus are localized properly.\n\nExample for adding Spanish (es-ES):\n\n```yaml\nes-ES:\n  add_first_item_here: Añadir menú aquí\n  disable_history_capture: Desactivar captura del portapapeles\n  enable_history_capture: Activar captura del portapapeles\n  clipboard_image_size: Tamaño de imagen del portapapeles\n  history_capture_is_disabled: La captura de historial del portapapeles está desactivada\n  recent_history: Historial reciente\n  open_pastebar: Abrir PasteBar\n  unlock_pastebar: Desbloquear PasteBar\n  quit: Salir\n```\n\nMake sure to follow the structure used for other languages and keep the translation keys consistent.\n\n### 6. Commit Your Changes\n\nOnce you've made your changes, commit them to your branch:\n\n```bash\ngit add .\ngit commit -m \"Description of your changes\"\n```\n\n### 7. Push Your Changes\n\nPush your changes to your forked repository:\n\n```bash\ngit push origin your-branch-name\n```\n\n### 8. Create a Pull Request\n\nAfter pushing your changes, go to the original repository on GitHub. You should see a prompt to create a pull request (PR). Click on that and follow the instructions to submit your PR for review.\n\n### 9. Wait for Review\n\nYour pull request will be reviewed by the maintainers of the repository. They may request changes or approve your contribution directly.\n\n### 10. Celebrate!\n\nOnce your contribution is merged, celebrate your successful contribution to the PasteBar project!\n\n## Additional Notes\n\n- Please make sure that all translations are accurate and consistent with the existing keys.\n- Avoid making structural changes to the YAML files without discussing them first.\n- If you have any questions, feel free to open an issue, and someone from the team will assist you.\n\nThank you for contributing to the localization of PasteBar!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpastebar%2Fpastebar-localization","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpastebar%2Fpastebar-localization","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpastebar%2Fpastebar-localization/lists"}