Put it in your app Languages
Languages
On this page
Choose one
import { FileDrive, TEXTS } from '@rebofiles/react';
<FileDrive language="zh" /> // English, Spanish and Mandarin come with it
<FileDrive texts={{ ...TEXTS.en, myFiles: 'Documents' }} /> // or words of your ownWho chooses
Each person’s own choice first, from the settings of the drive; then the language your application gives; then the drive’s, which whoever may configure it sets.
A language of your own
texts takes an object with the keys of TEXTS.en; TypeScript says which are missing. Values may have {n}, {name} and the like, filled as the English ones are.
Errors from the server come in English, with the names and numbers of the case, and the drive says them so in English. In Spanish and Chinese it says them by their code (RequestError.code), in its words: refusalText(error, language) does it for a screen of your own. A code of your application's, from a Refused of its own, is said as your server said it.
Rebodocs speaks English and Spanish. In Mandarin, the drive is in Chinese, and Rebodocs’ zoom bar and editor inside it are in English until Rebodocs has Chinese of its own.