yay package needs to include extra local files
yay prebuilt package downloaded from GitHub has included some localize files to provide multi-language support, but they are not included in the package community/yay
, which results that yay is always using English even in supported language environment such as zh_CN. Compile from AUR or manually put localize files to correct place can solve this problem. Please fix this problem so we can have a more convenient experience, thank you.
Add this to package()
may help:
for lang in pt pt_BR en es eu fr_FR ja pl_PL ru_RU zh_CN; do
install -Dm644 "${_output}/${lang}.mo" "${pkgdir}/usr/share/locale/$lang/LC_MESSAGES/yay.mo"
done