diff --git a/.changeset/lazy-radios-judge.md b/.changeset/lazy-radios-judge.md new file mode 100644 index 0000000..7e79588 --- /dev/null +++ b/.changeset/lazy-radios-judge.md @@ -0,0 +1,6 @@ +--- +"@google-translate-select/constants": patch +"@google-translate-select/theme-chalk": patch +--- + +Add Hindi to languages diff --git a/packages/constants/src/web/languages.ts b/packages/constants/src/web/languages.ts index 0e8834d..b1c5e2f 100644 --- a/packages/constants/src/web/languages.ts +++ b/packages/constants/src/web/languages.ts @@ -23,6 +23,7 @@ export const GOOGLE_TRANSLATE_SELECT_LANGUAGES_CODES = [ 'de', 'el', 'hu', + 'hi', 'id', 'ga', 'it', @@ -89,6 +90,12 @@ export const GOOGLE_TRANSLATE_SELECT_LANGUAGES: Language[] = [ cname: '希伯来语', ename: 'Hebrew', }, + { + code: 'hi', + name: 'हिंदी', + cname: '印地语', + ename: 'Hindi', + }, { code: 'hy', name: 'Հայերեն', diff --git a/packages/theme-chalk/src/google-translate-select.scss b/packages/theme-chalk/src/google-translate-select.scss index 330936b..1c63522 100644 --- a/packages/theme-chalk/src/google-translate-select.scss +++ b/packages/theme-chalk/src/google-translate-select.scss @@ -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+CiAgPHBhdGggZmlsbD0iIzEyODgwNyIgZD0iTTAgMzIwaDY0MHYxNjBIMHoiLz4KICA8ZyB0cmFuc2Zvcm09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