mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-13 17:22:15 -05:00
[Loc] cleanup and update localization build filters. (#24114)
* cleaned up build files * made small adjustments to locfunc
This commit is contained in:
@@ -163,10 +163,11 @@ const extensionsFilter = filter([
|
||||
'**/azurecore.xlf',
|
||||
'**/azuremonitor.xlf',
|
||||
'**/cms.xlf',
|
||||
'**/context-monitor.xlf',
|
||||
'**/dacpac.xlf',
|
||||
'**/data-workspace.xlf',
|
||||
'**/datavirtualization.xlf',
|
||||
'**/git.xlf',
|
||||
'**/data-workspace.xlf',
|
||||
'**/import.xlf',
|
||||
'**/kusto.xlf',
|
||||
'**/machine-learning.xlf',
|
||||
@@ -174,14 +175,14 @@ const extensionsFilter = filter([
|
||||
'**/notebook.xlf',
|
||||
'**/profiler.xlf',
|
||||
'**/query-history.xlf',
|
||||
'**/query-store.xlf',
|
||||
'**/resource-deployment.xlf',
|
||||
'**/schema-compare.xlf',
|
||||
'**/server-report.xlf',
|
||||
'**/sql-assessment.xlf',
|
||||
'**/sql-bindings.xlf',
|
||||
'**/sql-database-projects.xlf',
|
||||
'**/sql-migration.xlf',
|
||||
'**/xml-language-features.xlf'
|
||||
'**/sql-migration.xlf'
|
||||
]);
|
||||
|
||||
// Copy ADS extension XLFs into English resource folder.
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -154,12 +154,13 @@ export function modifyI18nPackFiles(existingTranslationFolder: string, resulting
|
||||
for (let extension in extensionsPacks) {
|
||||
const translatedExtFile = i18n.createI18nFile(`extensions/${extension}`, extensionsPacks[extension]);
|
||||
this.queue(translatedExtFile);
|
||||
|
||||
// exclude altered vscode extensions from having a new path even if we provide a new I18n file.
|
||||
if (alteredVSCodeExtensions.indexOf(extension) === -1) {
|
||||
let adsExtensionId = 'Microsoft.' + extension;
|
||||
resultingTranslationPaths.push({ id: adsExtensionId, resourceName: `extensions/${extension}.i18n.json` });
|
||||
let adsExtensionId = 'Microsoft.' + extension;
|
||||
// Exclude altered vscode extensions from having a new id, as it's identified this way in ADS.
|
||||
// We will use ADS's i18n file for actual translations.
|
||||
if (alteredVSCodeExtensions.indexOf(extension) !== -1) {
|
||||
adsExtensionId = 'vscode.' + extension;
|
||||
}
|
||||
resultingTranslationPaths.push({ id: adsExtensionId, resourceName: `extensions/${extension}.i18n.json` });
|
||||
}
|
||||
this.queue(null);
|
||||
})
|
||||
@@ -186,12 +187,12 @@ const VSCODEExtensions = [
|
||||
"builtin-notebook-renderers", // notebook renderers
|
||||
"configuration-editing",
|
||||
"docker",
|
||||
"git",
|
||||
"git-base",
|
||||
"github",
|
||||
"github-authentication",
|
||||
"image-preview",
|
||||
"ipynb",
|
||||
"javascript",
|
||||
"json",
|
||||
"json-language-features",
|
||||
"markdown", // markdown-basics
|
||||
|
||||
@@ -38,12 +38,24 @@
|
||||
"LclFile": "resources\\localization\\LCL\\{Lang}\\azurecore.xlf.lcl",
|
||||
"CopyOption": "LangIDOnPath",
|
||||
"OutputPath": "resources\\xlf"
|
||||
},
|
||||
{
|
||||
"SourceFile": "resources\\xlf\\en\\azuremonitor.xlf",
|
||||
"LclFile": "resources\\localization\\LCL\\{Lang}\\azuremonitor.xlf.lcl",
|
||||
"CopyOption": "LangIDOnPath",
|
||||
"OutputPath": "resources\\xlf"
|
||||
},
|
||||
{
|
||||
"SourceFile": "resources\\xlf\\en\\cms.xlf",
|
||||
"LclFile": "resources\\localization\\LCL\\{Lang}\\cms.xlf.lcl",
|
||||
"CopyOption": "LangIDOnPath",
|
||||
"OutputPath": "resources\\xlf"
|
||||
},
|
||||
{
|
||||
"SourceFile": "resources\\xlf\\en\\context-builder.xlf",
|
||||
"LclFile": "resources\\localization\\LCL\\{Lang}\\context-builder.xlf.lcl",
|
||||
"CopyOption": "LangIDOnPath",
|
||||
"OutputPath": "resources\\xlf"
|
||||
},
|
||||
{
|
||||
"SourceFile": "resources\\xlf\\en\\dacpac.xlf",
|
||||
@@ -56,6 +68,12 @@
|
||||
"LclFile": "resources\\localization\\LCL\\{Lang}\\data-workspace.xlf.lcl",
|
||||
"CopyOption": "LangIDOnPath",
|
||||
"OutputPath": "resources\\xlf"
|
||||
},
|
||||
{
|
||||
"SourceFile": "resources\\xlf\\en\\datavirtualization.xlf",
|
||||
"LclFile": "resources\\localization\\LCL\\{Lang}\\datavirtualization.xlf.lcl",
|
||||
"CopyOption": "LangIDOnPath",
|
||||
"OutputPath": "resources\\xlf"
|
||||
},
|
||||
{
|
||||
"SourceFile": "resources\\xlf\\en\\git.xlf",
|
||||
@@ -104,6 +122,12 @@
|
||||
"LclFile": "resources\\localization\\LCL\\{Lang}\\query-history.xlf.lcl",
|
||||
"CopyOption": "LangIDOnPath",
|
||||
"OutputPath": "resources\\xlf"
|
||||
},
|
||||
{
|
||||
"SourceFile": "resources\\xlf\\en\\query-store.xlf",
|
||||
"LclFile": "resources\\localization\\LCL\\{Lang}\\query-store.xlf.lcl",
|
||||
"CopyOption": "LangIDOnPath",
|
||||
"OutputPath": "resources\\xlf"
|
||||
},
|
||||
{
|
||||
"SourceFile": "resources\\xlf\\en\\resource-deployment.xlf",
|
||||
@@ -128,6 +152,12 @@
|
||||
"LclFile": "resources\\localization\\LCL\\{Lang}\\sql-assessment.xlf.lcl",
|
||||
"CopyOption": "LangIDOnPath",
|
||||
"OutputPath": "resources\\xlf"
|
||||
},
|
||||
{
|
||||
"SourceFile": "resources\\xlf\\en\\sql-bindings.xlf",
|
||||
"LclFile": "resources\\localization\\LCL\\{Lang}\\sql-bindings.xlf.lcl",
|
||||
"CopyOption": "LangIDOnPath",
|
||||
"OutputPath": "resources\\xlf"
|
||||
},
|
||||
{
|
||||
"SourceFile": "resources\\xlf\\en\\sql-database-projects.xlf",
|
||||
@@ -140,18 +170,6 @@
|
||||
"LclFile": "resources\\localization\\LCL\\{Lang}\\sql-migration.xlf.lcl",
|
||||
"CopyOption": "LangIDOnPath",
|
||||
"OutputPath": "resources\\xlf"
|
||||
},
|
||||
{
|
||||
"SourceFile": "resources\\xlf\\en\\sql.xlf",
|
||||
"LclFile": "resources\\localization\\LCL\\{Lang}\\sql.xlf.lcl",
|
||||
"CopyOption": "LangIDOnPath",
|
||||
"OutputPath": "resources\\xlf"
|
||||
},
|
||||
{
|
||||
"SourceFile": "resources\\xlf\\en\\xml-language-features.xlf",
|
||||
"LclFile": "resources\\localization\\LCL\\{Lang}\\xml-language-features.xlf.lcl",
|
||||
"CopyOption": "LangIDOnPath",
|
||||
"OutputPath": "resources\\xlf"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user