Skip to content

Add localization #18962

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 41 commits into from
May 5, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
b6b656b
Add localization (#18954)
paulacamargo25 Apr 19, 2022
a82e89f
Update pipeline
paulacamargo25 Apr 19, 2022
69e2abc
Update pushStep
paulacamargo25 Apr 19, 2022
21e8047
Fix move item step
paulacamargo25 Apr 19, 2022
162bfe8
Fix pull Steps
paulacamargo25 Apr 19, 2022
166f1fa
Fix pipeline push and pull
paulacamargo25 Apr 19, 2022
710a6da
Fix translations import param
paulacamargo25 Apr 19, 2022
38216c2
Fix generate translations task
paulacamargo25 Apr 20, 2022
6d04906
Add generate translation task to compile script
paulacamargo25 Apr 20, 2022
e4bc379
Add generate translations in the build steps
paulacamargo25 Apr 20, 2022
b226bcf
Change i18n pt-br file name
paulacamargo25 Apr 20, 2022
dd60351
Delete package.nls.de.json
paulacamargo25 Apr 20, 2022
f6d0349
Delete package.nls.pt-br.json
paulacamargo25 Apr 20, 2022
b05c883
Move generate translation task to PullStep
paulacamargo25 Apr 20, 2022
0486c9a
Add nls webpack configuration
paulacamargo25 Apr 20, 2022
e3e3c25
Add nls config in extension.ts
paulacamargo25 Apr 20, 2022
66886e4
Try new path in webpack loader
paulacamargo25 Apr 20, 2022
4c1089d
Test removing nls conf
paulacamargo25 Apr 20, 2022
bd82056
Add nls plugin
paulacamargo25 Apr 20, 2022
8a7c51b
Fix translations, remove nls pluging
paulacamargo25 Apr 20, 2022
f709c31
Remove unnecessary files
paulacamargo25 Apr 20, 2022
6f6f9d9
Clean code
paulacamargo25 Apr 20, 2022
2cd4150
Fix some comments
paulacamargo25 Apr 21, 2022
27d0df0
Remove unnecessary packages
paulacamargo25 Apr 21, 2022
45e3694
Fix string with format
paulacamargo25 Apr 23, 2022
37d2c9d
Merge branch 'main' of github.com:microsoft/vscode-python into Add-lo…
paulacamargo25 Apr 23, 2022
9b92cd7
Fix localize string
paulacamargo25 Apr 23, 2022
9be935d
Fix test in watcher
paulacamargo25 Apr 23, 2022
139d397
Ignore localization files
paulacamargo25 Apr 25, 2022
153e21f
Change strings in tests
paulacamargo25 Apr 25, 2022
a0534b2
Test importing nls in other file
paulacamargo25 Apr 25, 2022
595ba89
Fix comment in translations in tests
paulacamargo25 Apr 25, 2022
663d108
Add missing translations
paulacamargo25 Apr 25, 2022
6cd92df
Remove nls config in all files
paulacamargo25 Apr 25, 2022
d6e1563
Add location steps in the stable pipeline
paulacamargo25 Apr 25, 2022
7c9bcf7
Using new vscode-engineering feature to abstract away gulp (#19063)
TylerLeonhardt May 3, 2022
0c9a2fc
Merge branch 'main' of github.com:microsoft/vscode-python into Add-lo…
paulacamargo25 May 4, 2022
59706af
Add i18n to vscodeignore
paulacamargo25 May 4, 2022
3cb9db8
Clean Code
paulacamargo25 May 4, 2022
fc15653
Remove old translations
paulacamargo25 May 4, 2022
c413d15
update templates to main
TylerLeonhardt May 4, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,7 @@ pydevd*.log
nodeLanguageServer/**
nodeLanguageServer.*/**
dist/**
# translation files
*.xlf
*.nls.*.json
*.i18n.json
1 change: 1 addition & 0 deletions .vscodeignore
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ debug_coverage*/**
images/**/*.gif
images/**/*.png
ipywidgets/**
i18n/**
news/**
node_modules/**
obj/**
Expand Down
2 changes: 2 additions & 0 deletions build/azure-pipeline.pre-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ resources:
extends:
template: azure-pipelines/extension/pre-release.yml@templates
parameters:
locTsConfigs: $(Build.SourcesDirectory)/tsconfig.json
locBundleDestination: $(Build.SourcesDirectory)/out/client
buildSteps:
- task: NodeTool@0
inputs:
Expand Down
4 changes: 4 additions & 0 deletions build/azure-pipeline.stable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ extends:
template: azure-pipelines/extension/stable.yml@templates
parameters:
publishExtension: ${{ parameters.publishExtension }}

locTsConfigs: $(Build.SourcesDirectory)/tsconfig.json
locBundleDestination: $(Build.SourcesDirectory)/out/client

buildSteps:
- task: NodeTool@0
inputs:
Expand Down
6 changes: 6 additions & 0 deletions build/webpack/webpack.extension.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,12 @@ const config = {
},
module: {
rules: [
{
loader: 'vscode-nls-dev/lib/webpack-loader',
options: {
base: constants.ExtensionRootDir,
},
},
{
test: /\.ts$/,
use: [
Expand Down
4 changes: 3 additions & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,14 @@ const flat = require('flat');
const { argv } = require('yargs');
const os = require('os');
const rmrf = require('rimraf');
const typescript = require('typescript');

const tsProject = ts.createProject('./tsconfig.json', { typescript });

const isCI = process.env.TRAVIS === 'true' || process.env.TF_BUILD !== undefined;

gulp.task('compile', (done) => {
let failed = false;
const tsProject = ts.createProject('tsconfig.json');
tsProject
.src()
.pipe(tsProject())
Expand Down
1 change: 1 addition & 0 deletions news/1 Enhancements/18286.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Enable localization using vscode-nlsß
Loading