YunYouJun / cook

🍲 好的,今天我们来做菜!OK, Let's Cook!
https://cook.yunyoujun.cn
MIT License
5.06k stars 318 forks source link

i18n #65

Closed idc77 closed 9 months ago

idc77 commented 9 months ago

Clear and concise description of the problem

I'm looking for a recipe database, where my 89 year old mother can store her recipes, from everywhere, before she and her knowledge goes back into the earth. But she (and I) doesn't speak Chinese (I assume this language is Chinese, if not, sorry). As I see in package.json there is no vue-i18n package in dependencies, so this repository seems to be 1 langauge only.

It would be great if this app could be transated to other languages. I'm aware it's a bit of extra work. Most of the work would be defining

{
frontpage: {
  the: "the",
  terms: "terms",
  account: {
    login: "login",
    register: "register"
  }
}
}

and

<html>
<body>
<navbar>
<ul>
<li><a href="/account/login">{{t('frontpage.account.login')}}</a></li>

defining the placeholders and markup

Suggested solution

add vue-i18n

Alternative

keep it 1 language only?

Additional context

No response

Validations

idc77 commented 9 months ago

Actually, forget it. I don't think this repo is what I think it is. I was looking for a self-managed cookbook. This is more of a collection of recipes already.