# requires Node.js >= 16
npx bicstone
bicstone / ra-language-japanese Goto Github PK
View Code? Open in Web Editor NEWJapanese messages for react-admin
Home Page: https://www.npmjs.com/package/@bicstone/ra-language-japanese
License: MIT License
Japanese messages for react-admin
Home Page: https://www.npmjs.com/package/@bicstone/ra-language-japanese
License: MIT License
# requires Node.js >= 16
npx bicstone
This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.
These problems occurred while renovating this repository. View logs.
These updates are awaiting their schedule. Click on a checkbox to get an update now.
.github/workflows/ci.yml
actions/checkout v4
pnpm/action-setup v3
actions/setup-node v4
.github/workflows/publish-latest.yml
actions/checkout v4
pnpm/action-setup v3
actions/setup-node v4
.github/workflows/publish-next.yml
actions/checkout v4
pnpm/action-setup v3
actions/setup-node v4
.node-version
node 20.13.1
package.json
ra-core >=4.0.0-alpha.2
@biomejs/biome 1.7.3
all-contributors-cli 6.26.1
prettier 3.2.5
typescript 5.4.5
ra-core >=4.0.0-alpha.2
node 20.13.1
Hello @bicstone and I appreciate your effort for this library.
BTW, do you have a plan to release 3.18.3? I would like to use the version but it seems that the latest version in NPM is 3.18.0.
ref https://www.npmjs.com/package/@bicstone/ra-language-japanese
i instaled the package in my react-admin test app then i followed the instructions on V3 but all i get is RA.ACTION.EDIT , RA.ACTION.CREATE ...
バージョンアップ検知ができないので確認する
There is an error with this repository's Renovate configuration that needs to be fixed. As a precaution, Renovate will stop PRs until it is resolved.
Location: renovate.json
Error type: The renovate configuration file contains some invalid settings
Message: Invalid packageRules[0].schedule: 'Invalid schedule: Failed to parse "before 6am on"', Invalid packageRules[2].schedule: 'Invalid schedule: Failed to parse "before 6am on"'
こんにちは。素敵な翻訳を公開くださり、ありがとうございます😀
現バージョンのREADME.mdには、v3における使用方法として次のサンプルが書かれています。
import japaneseMessages from '@bicstone/ra-language-japanese';
import polyglotI18nProvider from 'ra-i18n-polyglot';
const messages = {
ja: japaneseMessages
};
const i18nProvider = polyglotI18nProvider(locale => messages[locale], 'ja');
<Admin i18nProvider={i18nProvider}>
...
</Admin>
これを手元のプロジェクトに導入したところ、以下の TypeScript error に遭遇し、コンパイルに失敗しました。
Element implicitly has an 'any' type because expression of type 'string' can't be used to index type '{ ja: Required<TranslationMessages>; }'.
No index signature with a parameter of type 'string' was found on type '{ ja: Required<TranslationMessages>; }'. TS7053
13 | ja: japaneseMessages
14 | };
> 15 | const i18nProvider = polyglotI18nProvider(locale => messages[locale], 'ja');
| ^
16 |
17 | const App = (): JSX.Element => (
18 | <Admin i18nProvider={i18nProvider} dataProvider={dataProvider}>
同エラーに対し手元では、次のように messages
変数の型を明示することで、エラーを解消しました。
import japaneseMessages from '@bicstone/ra-language-japanese';
import { TranslationMessages } from "@bicstone/ra-language-japanese/node_modules/ra-core";
import polyglotI18nProvider from 'ra-i18n-polyglot';
const messages: { [key: string]: TranslationMessages } = {
ja: japaneseMessages
};
const i18nProvider = polyglotI18nProvider(locale => messages[locale], 'ja');
<Admin i18nProvider={i18nProvider}>
...
</Admin>
この修正が最善かどうか自信はありませんが、よろしければ参考にしてください。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.