Open source personal finance application
chore(Locale): use yaml everywhere
Ilya Komichev4e544366ec59
diff --git a/components/about/About.vue b/components/about/About.vueindex 0273c30f..f7401e6e 100644--- a/components/about/About.vue+++ b/components/about/About.vue@@ -29,18 +29,14 @@ divfontFamilyNunito()</style>-<i18n lang="json5">-{- "en": {- "title": "Creators",- "author": "Author",- "thanks": "Thanks for support"- },+<i18n lang="yaml">+en:+ title: Creators+ author: Author+ thanks: Thanks for support- "ru": {- "title": "Создатели",- "author": "Автор",- "thanks": "Спасибо за поддержку"- }-}+ru:+ title: Создатели+ author: Автор+ thanks: Спасибо за поддержку</i18n>diff --git a/components/categories/page/id/Index.vue b/components/categories/page/id/Index.vueindex b7c7ca47..f1cee7c7 100644--- a/components/categories/page/id/Index.vue+++ b/components/categories/page/id/Index.vue@@ -94,14 +94,10 @@ UiPage(v-if="category")TrnsListWithControl(:trnsIds="trnsIds")</template>-<i18n lang="json5">-{- "en": {- "statBy": "Statistics: ",- },-- "ru": {- "statBy": "Статистика: ",- },-}+<i18n lang="yaml">+en:+ statBy: 'Statistics: '++ru:+ statBy: 'Статистика: '</i18n>diff --git a/components/currencies/List.vue b/components/currencies/List.vueindex d8b36334..88cf422b 100644--- a/components/currencies/List.vue+++ b/components/currencies/List.vue@@ -64,14 +64,10 @@ const list = computed(() => {.text-sm {{ currency.name }}</template>-<i18n lang="json5">-{- "en": {- "notFound": "Currency not found...",- },+<i18n lang="yaml">+en:+ notFound: Currency not found...- "ru": {- "notFound": "Валюта не найдена..."- },-}+ru:+ notFound: Валюта не найдена...</i18n>diff --git a/components/wallets/CurrenciesChanger.vue b/components/wallets/CurrenciesChanger.vueindex cb3fe08a..f47ad4bb 100644--- a/components/wallets/CurrenciesChanger.vue+++ b/components/wallets/CurrenciesChanger.vue@@ -1,5 +1,6 @@<script setup lang="ts">import useWallets from '~/components/wallets/useWallets'+const { walletsCurrencies } = useWallets()const { $store } = useNuxtApp()@@ -23,14 +24,10 @@ UiTabs(v-if="walletsCurrencies.length > 1")span.mdi.mdi-dots-vertical.ml-1</template>-<i18n lang="json5">-{- "en": {- "more": "More"- },+<i18n lang="yaml">+en:+ more: More- "ru": {- "more": "Еще"- },-}+ru:+ more: Еще</i18n>diff --git a/components/wallets/Form.vue b/components/wallets/Form.vueindex ed49226c..d372d7d0 100644--- a/components/wallets/Form.vue+++ b/components/wallets/Form.vue@@ -215,13 +215,10 @@ div(v-if="walletForm")background var(--c-item-bd-hover)</style>-<i18n lang="json5">-{- "en": {- "isCredit": "Credit account"- },- "ru": {- "isCredit": "Кредитный счёт"- }-}+<i18n lang="yaml">+en:+ isCredit: Credit account++ru:+ isCredit: Кредитный счёт</i18n>diff --git a/components/wallets/Total.vue b/components/wallets/Total.vueindex 8ca0f4bd..58e1ff37 100644--- a/components/wallets/Total.vue+++ b/components/wallets/Total.vue@@ -90,21 +90,18 @@ const counts = computed(() => ({)</template>-<i18n lang="json5">-{- "en": {- "withdrawal": "Withdrawal",- "credits": "Credits",- "withCredit": "Total without credit",- "savings": "Savings",- "total": "Total"- },- "ru": {- "withdrawal": "Доступные",- "credits": "Кредиты",- "withCredit": "Всего без учета кредита",- "savings": "Вложения",- "total": "Всего"- }-}+<i18n lang="yaml">+en:+ withdrawal: Withdrawal+ credits: Credits+ withCredit: Total without credit+ savings: Savings+ total: Total++ru:+ withdrawal: Доступные+ credits: Кредиты+ withCredit: Всего без учета кредита+ savings: Вложения+ total: Всего</i18n>diff --git a/components/wallets/page/List.vue b/components/wallets/page/List.vueindex 7976819a..781d55fb 100644--- a/components/wallets/page/List.vue+++ b/components/wallets/page/List.vue@@ -154,16 +154,12 @@ UiPage//- )</template>-<i18n lang="json5">- {- "en": {- "list": "List",- "currenciesBase": "Base currency",- },-- "ru": {- "list": "Список",- "currenciesBase": "Основная валюта",- }- }- </i18n>+<i18n lang="yaml">+en:+ list: List+ currenciesBase: Base currency++ru:+ list: Список+ currenciesBase: Основная валюта+</i18n>diff --git a/components/wallets/page/id/Index.vue b/components/wallets/page/id/Index.vueindex 45b212ce..6f69fb18 100644--- a/components/wallets/page/id/Index.vue+++ b/components/wallets/page/id/Index.vue@@ -98,13 +98,10 @@ UiPage(v-if="wallet")TrnsListWithControl(:trnsIds="trnsIds")</template>-<i18n lang="json5">-{- "en": {- "statBy": "Statistics",- },- "ru": {- "statBy": "Статистика",- },-}+<i18n lang="yaml">+en:+ statBy: Statistics++ru:+ statBy: Статистика</i18n>