From e8a240a168d0d3077616a522fa4714b5944c6382 Mon Sep 17 00:00:00 2001 From: Kevin Lu <18564130+KevinLu@users.noreply.github.com> Date: Mon, 18 Oct 2021 21:51:34 -0400 Subject: [PATCH 1/3] Add Simplified Chinese translations --- src/App.vue | 9 ++++++++- src/components/FeaturedRecipes.vue | 3 +++ src/components/Recipe.vue | 7 +++++++ src/components/RecipeFind.vue | 8 ++++++++ src/components/RecipeList.vue | 5 ++++- src/components/RecipeToolbar.vue | 8 ++++++++ src/views/Explore.vue | 5 +++++ src/views/Favorites.vue | 9 ++++++++- src/views/KeywordList.vue | 5 ++++- src/views/PageNotFound.vue | 6 +++++- src/views/Search.vue | 5 ++++- 11 files changed, 64 insertions(+), 6 deletions(-) diff --git a/src/App.vue b/src/App.vue index db72c8ac0..6f5d453c5 100644 --- a/src/App.vue +++ b/src/App.vue @@ -194,7 +194,14 @@ export default { "Explore": "अन्वेषण गर्नुहोस्", "Keywords": "मुख्य-शब्द", "Search": "खोज" - } + }, + "cn": { + "Featured": "精选", + "Random": "随机", + "Explore": "探索", + "Keywords": "关键词", + "Search": "搜索" + }, } diff --git a/src/components/FeaturedRecipes.vue b/src/components/FeaturedRecipes.vue index c0302612d..ea7f5c2bb 100644 --- a/src/components/FeaturedRecipes.vue +++ b/src/components/FeaturedRecipes.vue @@ -98,6 +98,9 @@ export default { }, "pt": { "Load More": "Ver mais" + }, + "cn": { + "Load More": "加载更多" } } diff --git a/src/components/Recipe.vue b/src/components/Recipe.vue index de358d56d..7bf461dd8 100644 --- a/src/components/Recipe.vue +++ b/src/components/Recipe.vue @@ -390,6 +390,13 @@ export default { "Directions": "Modo de preparo", "View full recipe at": "Visualizar receita completa em", "Similar drinks": "Bebidas semelhantes" + }, + "cn": { + "Contributed by": "贡献者", + "Ingredients": "用料", + "Directions": "步骤", + "View full recipe at": "查看完整配方", + "Similar drinks": "类似的饮料" } } diff --git a/src/components/RecipeFind.vue b/src/components/RecipeFind.vue index 04ce6780a..77738f3cd 100644 --- a/src/components/RecipeFind.vue +++ b/src/components/RecipeFind.vue @@ -302,6 +302,14 @@ export default { "Keywords": "Palavra-chave", "You can search for multiple ingredients by separating them with a space": "Você pode buscar por múltiplos ingredientes separando-os com um espaço", "You can search for multiple keywords by separating them with a space": "Você pode buscar por múltiplas palavras-chave separando-as com um espaço" + }, + "cn": { + "Filter by": "筛选条件", + "Name": "名称", + "Ingredients": "用料", + "Keywords": "关键词", + "You can search for multiple ingredients by separating them with a space": "您可以用空格分隔多个用料在搜索里", + "You can search for multiple keywords by separating them with a space": "您可以用空格分隔多个关键字在搜索里" } } diff --git a/src/components/RecipeList.vue b/src/components/RecipeList.vue index 0b384d369..b7b3863da 100644 --- a/src/components/RecipeList.vue +++ b/src/components/RecipeList.vue @@ -196,6 +196,9 @@ export default { }, "pt": { "View Recipe": "Ver receita" - } + }, + "cn": { + "View Recipe": "查看配方" + }, } diff --git a/src/components/RecipeToolbar.vue b/src/components/RecipeToolbar.vue index 0b743e73f..3262b9b69 100644 --- a/src/components/RecipeToolbar.vue +++ b/src/components/RecipeToolbar.vue @@ -271,6 +271,14 @@ export default { "Share on Twitter": "Compartilhar no Twitter", "Copy URL": "Copiar URL", "Hide Image": "Esconder imagem" + }, + "cn": { + "Print": "打印", + "Share": "分享", + "Share on Facebook": "Facebook", + "Share on Twitter": "Twitter", + "Copy URL": "复制链接", + "Hide Image": "隐藏图像" } } diff --git a/src/views/Explore.vue b/src/views/Explore.vue index 021d90327..de98c6564 100644 --- a/src/views/Explore.vue +++ b/src/views/Explore.vue @@ -195,6 +195,11 @@ export default { "Filters": "Filtros", "Reset Filters": "Restaurar Filtros", "Add Keyword": "Adicionar palavra-chave" + }, + "cn": { + "Filters": "筛选", + "Reset Filters": "重置筛选", + "Add Keyword": "添加关键字" } } diff --git a/src/views/Favorites.vue b/src/views/Favorites.vue index 52517a8b1..38a0645fa 100644 --- a/src/views/Favorites.vue +++ b/src/views/Favorites.vue @@ -165,6 +165,13 @@ export default { "Are you sure you want to remove all favorites": "Ви впевнені, що хочете видалити всі вибрані", "Delete": "Видалити", "Cancel": "Скасувати" - } + }, + "cn": { + "You don't have any favorite drinks": "您没有收藏的饮料", + "Remove All Favorites": "删除所有收藏里的饮料", + "Are you sure you want to remove all favorites": "您确定要删除所有收藏里的饮料么?", + "Delete": "删除", + "Cancel": "取消" + }, } diff --git a/src/views/KeywordList.vue b/src/views/KeywordList.vue index eda882787..cdbfd783c 100644 --- a/src/views/KeywordList.vue +++ b/src/views/KeywordList.vue @@ -77,6 +77,9 @@ export default { }, "pt": { "Enter your keyword": "Insira sua palavra-chave" - } + }, + "cn": { + "Enter your keyword": "输入关键字" + }, } diff --git a/src/views/PageNotFound.vue b/src/views/PageNotFound.vue index 9a65b153b..22bf6c3ad 100644 --- a/src/views/PageNotFound.vue +++ b/src/views/PageNotFound.vue @@ -83,6 +83,10 @@ export default { "uk": { "The page you are looking for was not found.": "Сторінку, яку ви шукаєте, не знайдено", "Back to Home": "Повернутися додому" - } + }, + "cn": { + "The page you are looking for was not found.": "未找到您要查找的页面。", + "Back to Home": "返回首页" + }, } diff --git a/src/views/Search.vue b/src/views/Search.vue index 22fc32fe2..b1766a3e2 100644 --- a/src/views/Search.vue +++ b/src/views/Search.vue @@ -62,6 +62,9 @@ export default { }, "uk": { "Find Your Drink": "Знайдіть свій напій" - } + }, + "cn": { + "Find Your Drink": "找想要的饮料" + }, } From 0ec3fcef5423c35332c49302d30f481709c435f5 Mon Sep 17 00:00:00 2001 From: Kevin Lu <18564130+KevinLu@users.noreply.github.com> Date: Mon, 18 Oct 2021 21:59:54 -0400 Subject: [PATCH 2/3] remove last comma --- src/App.vue | 2 +- src/components/RecipeList.vue | 2 +- src/views/Favorites.vue | 2 +- src/views/KeywordList.vue | 2 +- src/views/PageNotFound.vue | 2 +- src/views/Search.vue | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/App.vue b/src/App.vue index 6f5d453c5..67ccde3d8 100644 --- a/src/App.vue +++ b/src/App.vue @@ -201,7 +201,7 @@ export default { "Explore": "探索", "Keywords": "关键词", "Search": "搜索" - }, + } } diff --git a/src/components/RecipeList.vue b/src/components/RecipeList.vue index b7b3863da..2e213fd20 100644 --- a/src/components/RecipeList.vue +++ b/src/components/RecipeList.vue @@ -199,6 +199,6 @@ export default { }, "cn": { "View Recipe": "查看配方" - }, + } } diff --git a/src/views/Favorites.vue b/src/views/Favorites.vue index 38a0645fa..0d56de242 100644 --- a/src/views/Favorites.vue +++ b/src/views/Favorites.vue @@ -172,6 +172,6 @@ export default { "Are you sure you want to remove all favorites": "您确定要删除所有收藏里的饮料么?", "Delete": "删除", "Cancel": "取消" - }, + } } diff --git a/src/views/KeywordList.vue b/src/views/KeywordList.vue index cdbfd783c..abaea32f0 100644 --- a/src/views/KeywordList.vue +++ b/src/views/KeywordList.vue @@ -80,6 +80,6 @@ export default { }, "cn": { "Enter your keyword": "输入关键字" - }, + } } diff --git a/src/views/PageNotFound.vue b/src/views/PageNotFound.vue index 22bf6c3ad..4a85e9f36 100644 --- a/src/views/PageNotFound.vue +++ b/src/views/PageNotFound.vue @@ -87,6 +87,6 @@ export default { "cn": { "The page you are looking for was not found.": "未找到您要查找的页面。", "Back to Home": "返回首页" - }, + } } diff --git a/src/views/Search.vue b/src/views/Search.vue index b1766a3e2..55cf05654 100644 --- a/src/views/Search.vue +++ b/src/views/Search.vue @@ -65,6 +65,6 @@ export default { }, "cn": { "Find Your Drink": "找想要的饮料" - }, + } } From ae1531a7bec3d2da2f5118cd5f547ddbd73ca540 Mon Sep 17 00:00:00 2001 From: Kevin Lu <18564130+KevinLu@users.noreply.github.com> Date: Mon, 18 Oct 2021 22:17:37 -0400 Subject: [PATCH 3/3] use zh instead of cn for locale name --- src/App.vue | 2 +- src/components/FeaturedRecipes.vue | 2 +- src/components/Recipe.vue | 2 +- src/components/RecipeFind.vue | 2 +- src/components/RecipeList.vue | 2 +- src/components/RecipeToolbar.vue | 2 +- src/views/Explore.vue | 2 +- src/views/Favorites.vue | 2 +- src/views/KeywordList.vue | 2 +- src/views/PageNotFound.vue | 2 +- src/views/Search.vue | 2 +- 11 files changed, 11 insertions(+), 11 deletions(-) diff --git a/src/App.vue b/src/App.vue index 67ccde3d8..66192c38b 100644 --- a/src/App.vue +++ b/src/App.vue @@ -195,7 +195,7 @@ export default { "Keywords": "मुख्य-शब्द", "Search": "खोज" }, - "cn": { + "zh": { "Featured": "精选", "Random": "随机", "Explore": "探索", diff --git a/src/components/FeaturedRecipes.vue b/src/components/FeaturedRecipes.vue index ea7f5c2bb..fc8332897 100644 --- a/src/components/FeaturedRecipes.vue +++ b/src/components/FeaturedRecipes.vue @@ -99,7 +99,7 @@ export default { "pt": { "Load More": "Ver mais" }, - "cn": { + "zh": { "Load More": "加载更多" } } diff --git a/src/components/Recipe.vue b/src/components/Recipe.vue index 7bf461dd8..913c07eca 100644 --- a/src/components/Recipe.vue +++ b/src/components/Recipe.vue @@ -391,7 +391,7 @@ export default { "View full recipe at": "Visualizar receita completa em", "Similar drinks": "Bebidas semelhantes" }, - "cn": { + "zh": { "Contributed by": "贡献者", "Ingredients": "用料", "Directions": "步骤", diff --git a/src/components/RecipeFind.vue b/src/components/RecipeFind.vue index 77738f3cd..80f674497 100644 --- a/src/components/RecipeFind.vue +++ b/src/components/RecipeFind.vue @@ -303,7 +303,7 @@ export default { "You can search for multiple ingredients by separating them with a space": "Você pode buscar por múltiplos ingredientes separando-os com um espaço", "You can search for multiple keywords by separating them with a space": "Você pode buscar por múltiplas palavras-chave separando-as com um espaço" }, - "cn": { + "zh": { "Filter by": "筛选条件", "Name": "名称", "Ingredients": "用料", diff --git a/src/components/RecipeList.vue b/src/components/RecipeList.vue index 2e213fd20..ce43078ac 100644 --- a/src/components/RecipeList.vue +++ b/src/components/RecipeList.vue @@ -197,7 +197,7 @@ export default { "pt": { "View Recipe": "Ver receita" }, - "cn": { + "zh": { "View Recipe": "查看配方" } } diff --git a/src/components/RecipeToolbar.vue b/src/components/RecipeToolbar.vue index 3262b9b69..831383d55 100644 --- a/src/components/RecipeToolbar.vue +++ b/src/components/RecipeToolbar.vue @@ -272,7 +272,7 @@ export default { "Copy URL": "Copiar URL", "Hide Image": "Esconder imagem" }, - "cn": { + "zh": { "Print": "打印", "Share": "分享", "Share on Facebook": "Facebook", diff --git a/src/views/Explore.vue b/src/views/Explore.vue index de98c6564..c36a88510 100644 --- a/src/views/Explore.vue +++ b/src/views/Explore.vue @@ -196,7 +196,7 @@ export default { "Reset Filters": "Restaurar Filtros", "Add Keyword": "Adicionar palavra-chave" }, - "cn": { + "zh": { "Filters": "筛选", "Reset Filters": "重置筛选", "Add Keyword": "添加关键字" diff --git a/src/views/Favorites.vue b/src/views/Favorites.vue index 0d56de242..753ee0815 100644 --- a/src/views/Favorites.vue +++ b/src/views/Favorites.vue @@ -166,7 +166,7 @@ export default { "Delete": "Видалити", "Cancel": "Скасувати" }, - "cn": { + "zh": { "You don't have any favorite drinks": "您没有收藏的饮料", "Remove All Favorites": "删除所有收藏里的饮料", "Are you sure you want to remove all favorites": "您确定要删除所有收藏里的饮料么?", diff --git a/src/views/KeywordList.vue b/src/views/KeywordList.vue index abaea32f0..e7ffffeca 100644 --- a/src/views/KeywordList.vue +++ b/src/views/KeywordList.vue @@ -78,7 +78,7 @@ export default { "pt": { "Enter your keyword": "Insira sua palavra-chave" }, - "cn": { + "zh": { "Enter your keyword": "输入关键字" } } diff --git a/src/views/PageNotFound.vue b/src/views/PageNotFound.vue index 4a85e9f36..fc419f25b 100644 --- a/src/views/PageNotFound.vue +++ b/src/views/PageNotFound.vue @@ -84,7 +84,7 @@ export default { "The page you are looking for was not found.": "Сторінку, яку ви шукаєте, не знайдено", "Back to Home": "Повернутися додому" }, - "cn": { + "zh": { "The page you are looking for was not found.": "未找到您要查找的页面。", "Back to Home": "返回首页" } diff --git a/src/views/Search.vue b/src/views/Search.vue index 55cf05654..c6995603d 100644 --- a/src/views/Search.vue +++ b/src/views/Search.vue @@ -63,7 +63,7 @@ export default { "uk": { "Find Your Drink": "Знайдіть свій напій" }, - "cn": { + "zh": { "Find Your Drink": "找想要的饮料" } }