Skip to content

Commit

Permalink
Small trick cus vue dont have it
Browse files Browse the repository at this point in the history
  • Loading branch information
ArqTras committed Mar 28, 2021
1 parent 17c3f23 commit 7fa90fb
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 35 deletions.
49 changes: 17 additions & 32 deletions package-lock.json

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

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
"fs-extra": "^7.0.1",
"graceful-fs": "^4.2.4",
"object-assign-deep": "^0.4.0",
"persian-vue-timeago": "^1.1.0",
"portscanner": "^2.2.0",
"promise-queue": "^2.2.5",
"qrcode.vue": "^1.7.0",
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion src/i18n/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const languages = [
{ name: "Português", code: "pt-br", flag: "pt" },
{ name: "Čeština", code: "cs", flag: "cz" },
{ name: "Polski", code: "pl", flag: "pl" },
{ name: "فارسی", code: "fa", flag: "fa" }
{ name: "فارسی", code: "fa-ir", flag: "fa" }
]

export { languages }
Expand Down
4 changes: 2 additions & 2 deletions src/plugins/timeago.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import VueTimeago from "vue-timeago"
import VueTimeago from "persian-vue-timeago"
export default ({
app,
router,
Expand All @@ -17,7 +17,7 @@ export default ({
pl: require("date-fns/locale/pl"),
cs: require("date-fns/locale/cs"),
cn: require("date-fns/locale/zh_cn"),
fa: require("date-fns/locale/fa")
fa: require("date-fns/locale/pl")

}
})
Expand Down

0 comments on commit 7fa90fb

Please sign in to comment.