mirror of
https://github.com/mmahdium/portfolio.git
synced 2026-08-16 21:14:31 +03:30
Initial commit (secrets removed)
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
import type { Ref } from 'vue'
|
||||
import type { PortfolioData } from '@/types/portfolio.types'
|
||||
import en from '@/data/portfolio.en'
|
||||
import fa from '@/data/portfolio.fa'
|
||||
|
||||
export function usePortfolio(): Ref<PortfolioData> {
|
||||
const { locale } = useI18n()
|
||||
return computed(() => (locale.value === 'fa' ? fa : en))
|
||||
}
|
||||
Reference in New Issue
Block a user