Skip to content

Commit

Permalink
Merge pull request #92 from gavbrown89/add_hindi_to_languages
Browse files Browse the repository at this point in the history
Add Hindi to languages
  • Loading branch information
i7eo authored Feb 20, 2024
2 parents 4fc9b6c + 523fa9e commit 27bc897
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .changeset/lazy-radios-judge.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 Hindi 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 @@ -23,6 +23,7 @@ export const GOOGLE_TRANSLATE_SELECT_LANGUAGES_CODES = [
'de',
'el',
'hu',
'hi',
'id',
'ga',
'it',
Expand Down Expand Up @@ -89,6 +90,12 @@ export const GOOGLE_TRANSLATE_SELECT_LANGUAGES: Language[] = [
cname: '希伯来语',
ename: 'Hebrew',
},
{
code: 'hi',
name: 'हिंदी',
cname: '印地语',
ename: 'Hindi',
},
{
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 @@ -249,6 +249,15 @@
background-size: cover;
}

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

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

0 comments on commit 27bc897

Please sign in to comment.