Langpack refresh gulp task (#15930)

* added work in progress langpack commands

* working langpack refresh function added

* removed external extensions change.

* reverted extensions.js

* changed wording slightly

* changed wording

* added changelog and readme message

* clarified wording again

* added handling for outdated strings

* fixed wording and changed promise

* added another comment

* added have
This commit is contained in:
Alex Ma
2021-06-29 11:32:57 -07:00
committed by GitHub
parent 7ccbe61a1a
commit aee24b202d
5 changed files with 642 additions and 22 deletions

View File

@@ -64,7 +64,7 @@ export const externalExtensionsWithTranslations = {
};
interface Map<V> {
export interface Map<V> { // {{SQL CARBON EDIT}} Needed in locfunc.
[key: string]: V;
}
@@ -79,7 +79,7 @@ export interface Resource {
project: string;
}
interface ParsedXLF {
export interface ParsedXLF { // {{SQL CARBON EDIT}} Needed in locfunc.
messages: Map<string>;
originalFilePath: string;
language: string;
@@ -1167,7 +1167,7 @@ export function prepareI18nFiles(): ThroughStream {
});
}
function createI18nFile(originalFilePath: string, messages: any): File {
export function createI18nFile(originalFilePath: string, messages: any): File { // {{SQL CARBON EDIT}} Needed for locfunc.
let result = Object.create(null);
result[''] = [
'--------------------------------------------------------------------------------------------',
@@ -1190,14 +1190,14 @@ function createI18nFile(originalFilePath: string, messages: any): File {
});
}
interface I18nPack {
export interface I18nPack { // {{SQL CARBON EDIT}} Needed in locfunc.
version: string;
contents: {
[path: string]: Map<string>;
};
}
const i18nPackVersion = '1.0.0';
export const i18nPackVersion = '1.0.0'; // {{SQL CARBON EDIT}} Needed in locfunc.
export interface TranslationPath {
id: string;