Skip to content

Commit

Permalink
Merge pull request #1 from MohamedMaher5/master
Browse files Browse the repository at this point in the history
fix locale validation
  • Loading branch information
mohamedary authored May 31, 2021
2 parents bb3cc41 + 4c92f5e commit 526dc97
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions resources/js/components/Tool.vue
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,8 @@ export default {
if(locale === '')
return this.$toasted.show('Please enter a locale', { type: 'error' });
if(locale.length > 2)
return this.$toasted.show('Locale should be only 2 characters', { type: 'error' })
if(locale.length > 6)
return this.$toasted.show('Locale should be smaller than 6 characters', { type: 'error' })
this.$set(this.languages, locale, language);
}
Expand Down

0 comments on commit 526dc97

Please sign in to comment.