Comments (3)
Ah I just checked the loc content looks like it is actually perserved. (Just Github doesn't show it in the PR) Close this issue.
Thanks Tyler!
from vscode-l10n.
Tag @TylerLeonhardt to help
from vscode-l10n.
I just tried this and I can't repro:
package.nls.json:
{
"generateOptionsSchema.symbolOptions.searchMicrosoftSymbolServer.description": {
"message": "If 'true' the Microsoft Symbol server (https\u200b://msdl.microsoft.com\u200b/download/symbols) is added to the symbols search path. If unspecified, this option defaults to 'false'.",
"comment": [
"We use '\u200b' (unicode zero-length space character) to break VS Code's URL detection regex for URLs that are examples. Please do not translate or localized the URL.",
"{Locked='(https\u200b://msdl.microsoft.com\u200b/download/symbols)'}"
]
}
}
Command output:
>> npx @vscode/l10n-dev@latest generate-xlf ./package.nls.json -o foo.xlf
Searching for L10N JSON files...
Found 1 L10N JSON files. Generating XLF...
Wrote XLF file to: foo.xlf
Resulting XLF:
Raw XLF if you want to copy and verify yourself:
<?xml version="1.0" encoding="utf-8"?>
<xliff version="1.2" xmlns="urn:oasis:names:tc:xliff:document:1.2">
<file original="package" source-language="en" datatype="plaintext"><body>
<trans-unit id="generateOptionsSchema.symbolOptions.searchMicrosoftSymbolServer.description">
<source xml:lang="en">If 'true' the Microsoft Symbol server (https://msdl.microsoft.com/download/symbols) is added to the symbols search path. If unspecified, this option defaults to 'false'.</source>
<note>We use '' (unicode zero-length space character) to break VS Code's URL detection regex for URLs that are examples. Please do not translate or localized the URL.
{Locked='(https://msdl.microsoft.com/download/symbols)'}</note>
</trans-unit>
</body></file>
</xliff>
Are you able to repro this locally?
from vscode-l10n.
Related Issues (20)
- Support tagged template string for translatable strings
- xml2js NPM Vulnerability reported HOT 3
- Issue building vscode against >=electron-21 HOT 12
- No strings found. skipping writing to a bundle.l10n.json HOT 3
- l10n-dev misses Windows paths due to different path separator HOT 1
- Support running in Electron as Node aka support running in Node 19+ HOT 5
- Passing outDir to command always outputs warning that it doesn't match packageJSON.l10n value. HOT 4
- Provide a usage example for `t(options)` signature
- Cannot export value on deconstruction HOT 3
- Weird treesitter crash with v0.0.29, not on v0.0.16 HOT 1
- [Bug] escape characters HOT 2
- Line ending when call @vscode/l10n-dev export HOT 3
- Cannot export value on Variable or Template String HOT 2
- Support for ICU formatting? HOT 1
- Do not minify the main entry files
- Avoid using `node-fetch`
- messages not found in bundle HOT 1
- Don't bundle `@vscode/l10n` to save space HOT 1
- Support newlines in comments?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vscode-l10n.