mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -05:00
Added Sorted Core Strings (#16081)
* added sorted sql xlf and sorting function for i18n * compiled i18n.js * fixed space * simplified i18n.json
This commit is contained in:
@@ -527,7 +527,11 @@ function createXlfFilesForCoreBundle() {
|
|||||||
if (file.isBuffer()) {
|
if (file.isBuffer()) {
|
||||||
const xlfs = Object.create(null);
|
const xlfs = Object.create(null);
|
||||||
const json = JSON.parse(file.contents.toString('utf8'));
|
const json = JSON.parse(file.contents.toString('utf8'));
|
||||||
for (let coreModule in json.keys) {
|
// {{SQL CARBON EDIT}} - Must sort the keys for easier translation.
|
||||||
|
let sortedKeys = Object.keys(json.keys).sort();
|
||||||
|
for (let i = 0; i < sortedKeys.length; i++) {
|
||||||
|
let coreModule = sortedKeys[i];
|
||||||
|
// {{SQL CARBON EDIT}} - End
|
||||||
const projectResource = getResource(coreModule);
|
const projectResource = getResource(coreModule);
|
||||||
const resource = projectResource.name;
|
const resource = projectResource.name;
|
||||||
const project = projectResource.project;
|
const project = projectResource.project;
|
||||||
|
|||||||
@@ -652,7 +652,11 @@ export function createXlfFilesForCoreBundle(): ThroughStream {
|
|||||||
if (file.isBuffer()) {
|
if (file.isBuffer()) {
|
||||||
const xlfs: Map<XLF> = Object.create(null);
|
const xlfs: Map<XLF> = Object.create(null);
|
||||||
const json: BundledFormat = JSON.parse((file.contents as Buffer).toString('utf8'));
|
const json: BundledFormat = JSON.parse((file.contents as Buffer).toString('utf8'));
|
||||||
for (let coreModule in json.keys) {
|
// {{SQL CARBON EDIT}} - Must sort the keys for easier translation.
|
||||||
|
let sortedKeys = Object.keys(json.keys).sort();
|
||||||
|
for (let i = 0; i < sortedKeys.length; i++) {
|
||||||
|
let coreModule = sortedKeys[i];
|
||||||
|
// {{SQL CARBON EDIT}} - End
|
||||||
const projectResource = getResource(coreModule);
|
const projectResource = getResource(coreModule);
|
||||||
const resource = projectResource.name;
|
const resource = projectResource.name;
|
||||||
const project = projectResource.project;
|
const project = projectResource.project;
|
||||||
|
|||||||
@@ -458,6 +458,9 @@
|
|||||||
<trans-unit id="arc.agreement.sql.help.text.learn.more">
|
<trans-unit id="arc.agreement.sql.help.text.learn.more">
|
||||||
<source xml:lang="en">Learn more</source>
|
<source xml:lang="en">Learn more</source>
|
||||||
</trans-unit>
|
</trans-unit>
|
||||||
|
<trans-unit id="arc.agreement.sql.help.text.learn.more.ariaLabel">
|
||||||
|
<source xml:lang="en">Learn more about Azure Arc enabled Managed Instance</source>
|
||||||
|
</trans-unit>
|
||||||
</body></file>
|
</body></file>
|
||||||
<file original="extensions/arc/dist/localizedConstants" source-language="en" datatype="plaintext"><body>
|
<file original="extensions/arc/dist/localizedConstants" source-language="en" datatype="plaintext"><body>
|
||||||
<trans-unit id="arc.arcDeploymentDeprecation">
|
<trans-unit id="arc.arcDeploymentDeprecation">
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user