{"id":18263800,"url":"https://github.com/yearn/yearn-vaults-descriptions","last_synced_at":"2025-04-04T20:31:20.398Z","repository":{"id":37855338,"uuid":"440185383","full_name":"yearn/yearn-vaults-descriptions","owner":"yearn","description":null,"archived":false,"fork":false,"pushed_at":"2022-10-20T16:31:00.000Z","size":4185,"stargazers_count":7,"open_issues_count":1,"forks_count":25,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-03-20T19:07:28.321Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://vaults.yearn.finance","language":"TypeScript","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/yearn.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":"2021-12-20T13:46:13.000Z","updated_at":"2024-01-01T16:39:08.000Z","dependencies_parsed_at":"2023-01-19T14:04:58.638Z","dependency_job_id":null,"html_url":"https://github.com/yearn/yearn-vaults-descriptions","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/yearn%2Fyearn-vaults-descriptions","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yearn%2Fyearn-vaults-descriptions/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yearn%2Fyearn-vaults-descriptions/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yearn%2Fyearn-vaults-descriptions/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yearn","download_url":"https://codeload.github.com/yearn/yearn-vaults-descriptions/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247246381,"owners_count":20907785,"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-05T11:12:44.574Z","updated_at":"2025-04-04T20:31:19.389Z","avatar_url":"https://github.com/yearn.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Vaults at Yearn\n\u003e Welcome to The Vaults at Yearn  \n\u003e Here you can find in-depth information about how Yearn’s yVaults operateand the actions (strategies) these vaults perform.  \n\u003e This website will maintain a one-stop location for all yVault descriptions. All version 1 yVaults have been deprecated, and any in production are now on version 2.\n\n# How to - Dev\n1. Clone the repo\n2. Install the dependencies: `yarn`\n3. Run the project in dev mode: `yarn run dev`\n4. *Optional*: to test in prod mode, run `yarn run build \u0026\u0026 yarn run start`\n\n# How to - Add translations\nThis project integrate a custom translation system, based on some standard and localization standards. New locales must be manually added and integrated.  \nAll translations are stored in the `localization/[locale]` folder. Right now only the `common.json` file is used.  \n`[locale]` should be replaced with the locale code, e.g. `en`, `es`, `fr`. Codes can be found [here](http://www.lingoes.net/en/translator/langcode.htm).  \nFallback for missing translations is the `en` locale.\n\n#### Create the translation file\n- **If the locale file exists**, aka `[locale]/common.json`, you can just check the missing translations from the reference file (`en/common.json`) and add them.  \n- **If the locale file does not exist**, you first need to create a new folder with your locale code, copy the `_common.json` file in it and rename it to `common.json`. Then, you can start translating.\n\n#### Add the locale to the list of supported locale\nOnce the translation is done, you will need to ensure the app will recognize the new locale. To do so, you first need to check if the file `utils/locales.js` is updated and contains your locale. This file contain an object following this structure:\n```js\n\t'ru': { //Id of the locale\n\t\t'code': 'ru', //Iso code of the locale, the same as for the [locale] folder\n\t\t'name': 'Русский', //Name of the locale, in locale language\n\t\t'symbol': 'Ru', //Symbol of the locale, which will be displayed on the language selection menu\n\t},\n```\nIf not, just apprend the new locale to the object.  \n\n#### Enable locale in auto-detection\nIn order to be able to auto-detect the locale and redirect the users browser to the correct locale, you need to add the locale Iso code to the `i18n.locales` array in the `next.config.js` file.\n```diff\n\ti18n: {\n+\t\tlocales: ['en', 'fr', 'es', 'ru'],\n\t\tdefaultLocale: 'en',\n\t},\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyearn%2Fyearn-vaults-descriptions","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyearn%2Fyearn-vaults-descriptions","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyearn%2Fyearn-vaults-descriptions/lists"}