mirror of
				https://github.com/zulip/zulip-desktop.git
				synced 2025-11-03 21:43:18 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			19 lines
		
	
	
		
			539 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
		
			539 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
import type {UserConfig} from "i18next-parser";
 | 
						|
 | 
						|
const config: UserConfig = {
 | 
						|
  createOldCatalogs: false,
 | 
						|
  defaultValue: (locale, namespace, key, value) =>
 | 
						|
    locale === "en" ? key! : value!,
 | 
						|
  indentation: "\t" as unknown as number,
 | 
						|
  input: ["app/**/*.ts"],
 | 
						|
  keySeparator: false,
 | 
						|
  lexers: {
 | 
						|
    ts: [{lexer: "JavascriptLexer", functions: ["t.__", "t.__mf"]}],
 | 
						|
  },
 | 
						|
  locales: ["en"],
 | 
						|
  namespaceSeparator: false,
 | 
						|
  output: "public/translations/$LOCALE.json",
 | 
						|
  sort: (a, b) => (a < b ? -1 : a > b ? 1 : 0),
 | 
						|
};
 | 
						|
export default config;
 |