Skip to content

Commit

Permalink
Update props.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
adamvindico authored Apr 24, 2024
1 parent 9e01715 commit 9649736
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions packages/vue3/src/types/props.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,11 @@ import { GOOGLE_TRANSLATE_SELECT_LANGUAGES } from '@google-translate-select/cons
import type { Language as ILanguage } from '@google-translate-select/constants'
import type { CSSProperties, ExtractPropTypes, PropType } from 'vue'

const languages = ref<ILanguage[]>([
...GOOGLE_TRANSLATE_SELECT_LANGUAGES,
{
code: 'cy',
name: 'Cymraeg',
cname: '威尔士语',
ename: 'Welsh',
}
])

export const googleTranslateProps = {
/** select dropdown option */
languages: {
type: Array as PropType<ILanguage[]>,
default: () => languages,
default: () => GOOGLE_TRANSLATE_SELECT_LANGUAGES,
},
/** select input default language*/
defaultLanguageCode: {
Expand Down

0 comments on commit 9649736

Please sign in to comment.