Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add gujarati to languages #97

Merged
merged 3 commits into from
Mar 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiBpZD0iZmxhZy1pY29ucy1pbiIgdmlld0JveD0iMCAwIDY0MCA0ODAiPgogIDxwYXRoIGZpbGw9IiNmOTMiIGQ9Ik0wIDBoNjQwdjE2MEgweiIvPgogIDxwYXR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