chore(i18n): Pull latest translations from Locize to obtain French translation (thanks @salimkanoun!) (#1613)
* Pull latest translations from Locize to obtain French translation * Fix newlines
This commit is contained in:
1 parent
e5175bf3e6
commit
b5b851ac7c
18 files changed
+136
-44
No files matched your search
@@ -43,7 +43,7 @@ directories.forEach(directory => {
|
||||
const filename = path.basename(file);
|
||||
const namespace = path.basename(file, '.json');
|
||||
|
||||
content += `import ${namespace} from "./${filename}";\n`;
|
||||
content += `import ${namespace} from './${filename}';\n`;
|
||||
});
|
||||
|
||||
content += '\n';
|
||||
@@ -51,7 +51,7 @@ directories.forEach(directory => {
|
||||
namespaces.forEach(namespace => {
|
||||
exportLines += ` ${namespace},\n`;
|
||||
});
|
||||
exportLines += ' }\n};';
|
||||
exportLines += ' }\n};\n';
|
||||
|
||||
content += exportLines;
|
||||
|
||||
@@ -80,7 +80,7 @@ languageVariables.forEach(language => {
|
||||
fileContent += ` ...${language},\n`;
|
||||
});
|
||||
|
||||
fileContent += '};';
|
||||
fileContent += '};\n';
|
||||
|
||||
// Create one file (index.js) inside the locales folder
|
||||
// which exports each of the languages
|
||||
|
||||
Reference in new issue
Block a user