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()) {
|
||||
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;
|
||||
|
||||
Reference in New Issue
Block a user