react項目支持多語言,擴展性高

目錄結構   Intl.js代碼 import IntlMessageFormat from 'intl-messageformat'; import zh from '../locales/zh-CN'; import en from '../locales/en-US'; const MESSAGES = { en, zh };   //const LOCALE = 'zh'; // -> 這
相關文章
相關標籤/搜索