Skip to content

Default Language ๐ŸŒ

How to change the default language

  • Open this file client\src\store\language.ts
  • Modify the "default" in the lang variable with your locale identifier :

Example: from English as default

import { atom } from 'recoil';

const lang = atom({
  key: 'lang',
  default: localStorage.getItem('lang') || 'en-US',
});

export default { lang };

to Italian as default

import { atom } from 'recoil';

const lang = atom({
  key: 'lang',
  default: localStorage.getItem('lang') || 'it-IT',
});

export default { lang };

โ—If you wish to contribute your own translation to LibreChat, please refer to this document for instructions: Contribute a Translation