Skip to content

Commit

Permalink
Merge pull request #97 from gavbrown89/add_gujarati_to_languages
Browse files Browse the repository at this point in the history
Add gujarati to languages
  • Loading branch information
i7eo committed Mar 8, 2024
2 parents de15492 + c55c4fd commit 21aaefa
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .changeset/curvy-kiwis-mix.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@google-translate-select/constants": patch
"@google-translate-select/theme-chalk": patch
---

Add gujarati to languages
7 changes: 7 additions & 0 deletions packages/constants/src/web/languages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ export const GOOGLE_TRANSLATE_SELECT_LANGUAGES_CODES = [
'el',
'hu',
'hi',
'gu',
'id',
'ga',
'it',
Expand Down Expand Up @@ -96,6 +97,12 @@ export const GOOGLE_TRANSLATE_SELECT_LANGUAGES: Language[] = [
cname: '印地语',
ename: 'Hindi',
},
{
code: 'gu',
name: '古吉拉特语',
cname: '古吉拉特语',
ename: 'Gujarati',
},
{
code: 'hy',
name: 'Հայերեն',
Expand Down
9 changes: 9 additions & 0 deletions packages/theme-chalk/src/google-translate-select.scss
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,15 @@
background-size: cover;
}

&__gu {
// width: 35px;
// height: 35px;
width: 100%;
height: 100%;
background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiBpZD0iZmxhZy1pY29ucy1pbiIgdmlld0JveD0iMCAwIDY0MCA0ODAiPgogIDxwYXRoIGZpbGw9IiNmOTMiIGQ9Ik0wIDBoNjQwdjE2MEgweiIvPgogIDxwYXRoIGZpbGw9IiNmZmYiIGQ9Ik0wIDE2MGg2NDB2MTYwSDB6Ii8+CiAgPHBhdGggZmlsbD0iIzEyODgwNyIgZD0iTTA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h0PSIxMDAlIiB0cmFuc2Zvcm09InJvdGF0ZSgtMTIwKSIvPgogIDwvZz4KPC9zdmc+');
background-size: cover;
}

&__hr {
// width: 35px;
// height: 35px;
Expand Down

0 comments on commit 21aaefa

Please sign in to comment.