Skip to content

Commit

Permalink
Update LocalProvider
Browse files Browse the repository at this point in the history
  • Loading branch information
erfanmola committed Oct 8, 2023
1 parent b60a02a commit 9cf6b7d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@erfanmola/televue",
"version": "0.1.2",
"version": "0.1.3",
"type": "module",
"files": [
"dist"
Expand Down
4 changes: 2 additions & 2 deletions src/providers/LocaleProvider.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
const props = defineProps({
locale: {
default: WebApp.initDataUnsafe.user?.language_code?.toString().toLowerCase() || 'en',
default: null,
type: String,
},
direction: {
Expand All @@ -27,7 +27,7 @@
document.body.classList.add(direction);
provide('locale', props.locale);
provide('locale', props.locale || WebApp.initDataUnsafe.user?.language_code?.toString().toLowerCase() || 'en');
provide('direction', props.direction || direction);
</script>
Expand Down

0 comments on commit 9cf6b7d

Please sign in to comment.