fix: lint const to function
This commit is contained in:
		
							parent
							
								
									1dc5cfa283
								
							
						
					
					
						commit
						6525e34f77
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -137,7 +137,7 @@ interface Translations { | |||
| 
 | ||||
| 
 | ||||
| // Function to load translations from YAML files
 | ||||
| const loadTranslations = (language: string): Translations => { | ||||
| function loadTranslations(language: string): Translations { | ||||
|     try { | ||||
|         const filePath = path.join(process.cwd(), "_i18n", `${language}.yml`); | ||||
|         const yamlFile = fs.readFileSync(filePath, "utf8"); | ||||
|  |  | |||
		Reference in a new issue
	
	 Gabriellvl
						Gabriellvl