function saveSettings(i18next, settings, locale, destination) {
	const translatedSetting = parseSettings(i18next, settings, locale);

	mkdirp.sync(path.dirname(destination));
	const basename = `${path.basename(
		destination,
		path.extname(destination),
	)}.${locale}${path.extname(destination)}`;
	const filePath = path.join(path.dirname(destination), basename);
	const file = fs.createWriteStream(filePath);
	file.write(JSON.stringify(translatedSetting) + String.fromCharCode(10));
	file.end();
	getLogger()('Settings created:', `${filePath}  settings has been created`);
}
/**
 * saveSettings - description
 *
 /**
  * saveSettings - save the settings
  *
  * @param  {object} i18next  i18n instance
  * @param  {type}   settings   settings to translate
  * @param  {string} locale   locale to apply
  * @param  {string} destination destination to write the settings
 */
description
saveSettings - save the settings

@param  {object} i18next  i18n instance
@param  {type}   settings   settings to translate
@param  {string} locale   locale to apply
@param  {string} destination destination to write the settings
description saveSettings - save the settings @param { object } i18next i18n instance @param { type } settings settings to translate @param { string } locale locale to apply @param { string } destination destination to write the settings
function saveSettings(i18next, settings, locale, destination) {
	const translatedSetting = parseSettings(i18next, settings, locale);
	mkdirp.sync(path.dirname(destination));
	const basename = `${path.basename(
		destination,
		path.extname(destination),
	)}.${locale}${path.extname(destination)}`;
	const filePath = path.join(path.dirname(destination), basename);
	const file = fs.createWriteStream(filePath);
	file.write(JSON.stringify(translatedSetting) + String.fromCharCode(10));
	file.end();
	getLogger()('Settings created:', `${filePath}  settings has been created`);
}
function saveSettings ( i18next , settings , locale , destination ) { const translatedSetting = parseSettings ( i18next , settings , locale ) ; mkdirp . sync ( path . dirname ( destination ) ) ; const basename = ` ${ path . basename ( destination , path . extname ( destination ) , ) } ${ locale } ${ path . extname ( destination ) } ` ; const filePath = path . join ( path . dirname ( destination ) , basename ) ; const file = fs . createWriteStream ( filePath ) ; file . write ( JSON . stringify ( translatedSetting ) + String . fromCharCode ( 10 ) ) ; file . end ( ) ; getLogger ( ) ( 'Settings created:' , ` ${ filePath } ` ) ; }
saveSettings - description
 saveSettings - save the settings
saveSettings - description saveSettings - save the settings