mirror of
				https://github.com/open-metadata/OpenMetadata.git
				synced 2025-10-31 10:39:30 +00:00 
			
		
		
		
	 0f3e929b75
			
		
	
	
		0f3e929b75
		
			
		
	
	
	
	
		
			
			* doc: update doc for how to add new language support * chore: minor fix * address comments
		
			
				
	
	
		
			39 lines
		
	
	
		
			1.5 KiB
		
	
	
	
		
			Markdown
		
	
	
	
	
	
			
		
		
	
	
			39 lines
		
	
	
		
			1.5 KiB
		
	
	
	
		
			Markdown
		
	
	
	
	
	
| ---
 | |
| title: How to Add Language Support
 | |
| slug: /how-to-guides/how-to-add-language-support
 | |
| ---
 | |
| 
 | |
| # How to Add Language Support
 | |
| 
 | |
| To add support for a new language in our internationalization setup using `react-i18next` and `i18next`, please follow the steps below:
 | |
| 
 | |
| ## Create a Language JSON File
 | |
| 
 | |
| First, create a new JSON file for the language you want to add in the `openmetadata-ui/src/main/resources/ui/src/locale/languages` directory.
 | |
| 
 | |
| For example, if you want to add support for the `French` language, you can create a file called `fr-fr.json` in the languages directory:
 | |
| 
 | |
| ```shell
 | |
| # Navigate to the ui/src/locale/languages directory
 | |
| cd openmetadata-ui/src/main/resources/ui/src/locale/languages
 | |
| 
 | |
| # Create the French language file
 | |
| touch fr-fr.json
 | |
| 
 | |
| ```
 | |
| 
 | |
| ## Sync the Language File with the Primary Language
 | |
| 
 | |
| To ensure consistency with our primary language, which is `en-us`, it is necessary to synchronize any newly added language files. This can be done by copying the content from the `en-us.json` file and translating it accordingly.
 | |
| 
 | |
| To copy the contents of en-us.json and add it to your translation JSON file, follow these steps:
 | |
| 
 | |
| - Go to [en-us.json](https://github.com/open-metadata/OpenMetadata/blob/main/openmetadata-ui/src/main/resources/ui/src/locale/languages/en-us.json)
 | |
| - Copy the content of file
 | |
| - Open your translation JSON file.
 | |
| - Paste the copied text into your translation JSON file.
 | |
| 
 | |
| You can refer to the image below for a visual guide:
 | |
| 
 | |
| <Image alt="copy-en-us" src="/images/how-to-guides/language-support.png"/>
 |