mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-14 01:25:37 -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()) {
|
||||
const xlfs = Object.create(null);
|
||||
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 resource = projectResource.name;
|
||||
const project = projectResource.project;
|
||||
|
||||
@@ -652,7 +652,11 @@ export function createXlfFilesForCoreBundle(): ThroughStream {
|
||||
if (file.isBuffer()) {
|
||||
const xlfs: Map<XLF> = Object.create(null);
|
||||
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 resource = projectResource.name;
|
||||
const project = projectResource.project;
|
||||
|
||||
@@ -458,6 +458,9 @@
|
||||
<trans-unit id="arc.agreement.sql.help.text.learn.more">
|
||||
<source xml:lang="en">Learn more</source>
|
||||
</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>
|
||||
<file original="extensions/arc/dist/localizedConstants" source-language="en" datatype="plaintext"><body>
|
||||
<trans-unit id="arc.arcDeploymentDeprecation">
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user