From 657e034285c493e0ee9d777d0dfacc92b152f8ca Mon Sep 17 00:00:00 2001 From: Gavin Brown Date: Thu, 7 Mar 2024 11:34:27 +0000 Subject: [PATCH 1/3] feat: :sparkles: added gujarati language option added gujarati language --- packages/constants/src/web/languages.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/packages/constants/src/web/languages.ts b/packages/constants/src/web/languages.ts index b1c5e2f..e5edba8 100644 --- a/packages/constants/src/web/languages.ts +++ b/packages/constants/src/web/languages.ts @@ -24,6 +24,7 @@ export const GOOGLE_TRANSLATE_SELECT_LANGUAGES_CODES = [ 'el', 'hu', 'hi', + 'gu', 'id', 'ga', 'it', @@ -96,6 +97,12 @@ export const GOOGLE_TRANSLATE_SELECT_LANGUAGES: Language[] = [ cname: '印地语', ename: 'Hindi', }, + { + code: 'gu', + name: '古吉拉特语', + cname: '古吉拉特语', + ename: 'Gujarati', + }, { code: 'hy', name: 'Հայերեն', From fbfe935ddadd20ea747d8eda53b03dc86dfefffe Mon Sep 17 00:00:00 2001 From: Gavin Brown Date: Thu, 7 Mar 2024 11:35:24 +0000 Subject: [PATCH 2/3] style: :lipstick: added flag for gujarati language option added flag for gujarati --- packages/theme-chalk/src/google-translate-select.scss | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/packages/theme-chalk/src/google-translate-select.scss b/packages/theme-chalk/src/google-translate-select.scss index 1c63522..8eb0c70 100644 --- a/packages/theme-chalk/src/google-translate-select.scss +++ b/packages/theme-chalk/src/google-translate-select.scss @@ -258,6 +258,15 @@ background-size: cover; } + &__gu { + // width: 35px; + // height: 35px; + width: 100%; + height: 100%; + background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiBpZD0iZmxhZy1pY29ucy1pbiIgdmlld0JveD0iMCAwIDY0MCA0ODAiPgogIDxwYXRoIGZpbG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bi1kIiB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiB0cmFuc2Zvcm09InJvdGF0ZSgxMjApIi8+CiAgICA8dXNlIHhsaW5rOmhyZWY9IiNpbi1kIiB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiB0cmFuc2Zvcm09InJvdGF0ZSgtMTIwKSIvPgogIDwvZz4KPC9zdmc+'); + background-size: cover; + } + &__hr { // width: 35px; // height: 35px; From c55c4fd3b724b5db97d77660ef9497b196eff171 Mon Sep 17 00:00:00 2001 From: i7eo Date: Fri, 8 Mar 2024 15:46:00 +0800 Subject: [PATCH 3/3] chore: bump version --- .changeset/curvy-kiwis-mix.md | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 .changeset/curvy-kiwis-mix.md diff --git a/.changeset/curvy-kiwis-mix.md b/.changeset/curvy-kiwis-mix.md new file mode 100644 index 0000000..039cb67 --- /dev/null +++ b/.changeset/curvy-kiwis-mix.md @@ -0,0 +1,6 @@ +--- +"@google-translate-select/constants": patch +"@google-translate-select/theme-chalk": patch +--- + +Add gujarati to languages