mirror of
https://github.com/mmahdium/portfolio.git
synced 2025-12-20 09:23:54 +01:00
10 lines
312 B
TypeScript
10 lines
312 B
TypeScript
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))
|
|
}
|