Skip to content

Commit 7fbc782

Browse files
committed
2 parents f63c429 + 2ca94dd commit 7fbc782

File tree

17 files changed

+44
-22
lines changed

17 files changed

+44
-22
lines changed

lerna.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
"packages/*",
44
"packages/angular/projects/*"
55
],
6-
"version": "6.0.0"
6+
"version": "6.0.1"
77
}

packages/angular/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@transifex/angular-projects",
3-
"version": "6.0.0",
3+
"version": "6.0.1",
44
"description": "i18n Angular framework using Transifex Native",
55
"keywords": [
66
"transifex",
@@ -40,7 +40,7 @@
4040
"@angular/platform-browser": "^14.3.0",
4141
"@angular/platform-browser-dynamic": "^14.3.0",
4242
"@angular/router": "~14.3.0",
43-
"@transifex/native": "^6.0.0",
43+
"@transifex/native": "^6.0.1",
4444
"rxjs": "~6.6.0",
4545
"tslib": "^2.0.0",
4646
"zone.js": "~0.11.4"

packages/angular/projects/tx-native-angular-sdk/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@transifex/angular",
3-
"version": "6.0.0",
3+
"version": "6.0.1",
44
"description": "i18n Angular framework using Transifex Native",
55
"keywords": [
66
"transifex",

packages/api/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@transifex/api",
3-
"version": "6.0.0",
3+
"version": "6.0.1",
44
"description": "Transifex API SDK",
55
"keywords": [
66
"transifex",
@@ -31,7 +31,7 @@
3131
"@babel/cli": "^7.17.10",
3232
"@babel/core": "^7.17.10",
3333
"@babel/preset-env": "^7.17.10",
34-
"@transifex/jsonapi": "^6.0.0",
34+
"@transifex/jsonapi": "^6.0.1",
3535
"babel-eslint": "^10.1.0",
3636
"babel-loader": "^8.2.5",
3737
"eslint": "^7.32.0",

packages/cli/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@transifex/cli",
33
"description": "i18n CLI tool for Transifex Native",
4-
"version": "6.0.0",
4+
"version": "6.0.1",
55
"author": "Transifex",
66
"keywords": [
77
"transifex",
@@ -28,7 +28,7 @@
2828
"@babel/traverse": "^7.20.1",
2929
"@colors/colors": "^1.5.0",
3030
"@oclif/core": "^1.20.4",
31-
"@transifex/native": "^6.0.0",
31+
"@transifex/native": "^6.0.1",
3232
"@vue/compiler-sfc": "^3.2.45",
3333
"angular-html-parser": "^1.8.0",
3434
"axios": "^1.1.3",

packages/cli/src/api/parsers/angularHTML.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ function parseHTMLTemplateFile(HASHES, filename, relativeFile, options) {
150150
}
151151

152152
const data = fs.readFileSync(filename, 'utf8');
153-
const { rootNodes, errors } = ngHtmlParser.parse(data);
153+
const { rootNodes, errors } = ngHtmlParser.parse(data, { canSelfClose: true });
154154
if (errors.length) return;
155155

156156
parseTemplateNode(rootNodes);

packages/cli/test/api/extract.hashedkeys.test.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -443,6 +443,16 @@ describe('extractPhrases with hashed keys', () => {
443443
},
444444
string: '{var4}',
445445
},
446+
'text.inside-self-closing-tag': {
447+
meta: {
448+
context: [],
449+
occurrences: [
450+
'angular-template.html',
451+
],
452+
tags: [],
453+
},
454+
string: 'This is some text inside a self-closing tag',
455+
},
446456
});
447457
});
448458

packages/cli/test/api/extract.sourcekeys.test.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -424,6 +424,16 @@ describe('extractPhrases with source keys', () => {
424424
},
425425
string: '{var4}',
426426
},
427+
'text.inside-self-closing-tag': {
428+
meta: {
429+
context: [],
430+
occurrences: [
431+
'angular-template.html',
432+
],
433+
tags: [],
434+
},
435+
string: 'This is some text inside a self-closing tag',
436+
},
427437
});
428438
});
429439

packages/cli/test/fixtures/angular-template.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,4 +98,6 @@ <h1 class="marginBottom-2x">
9898
>
9999
Content 1
100100
</mat-tab>
101+
102+
<T str="This is some text inside a self-closing tag" key="text.inside-self-closing-tag" />
101103
</div>

packages/dom/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@transifex/dom",
3-
"version": "6.0.0",
3+
"version": "6.0.1",
44
"description": "i18n DOM library using Transifex Native",
55
"keywords": [
66
"transifex",

packages/express/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@transifex/express",
3-
"version": "6.0.0",
3+
"version": "6.0.1",
44
"description": "i18n express framework using Transifex Native",
55
"keywords": [
66
"transifex",
@@ -33,7 +33,7 @@
3333
"node": ">=14.0.0"
3434
},
3535
"devDependencies": {
36-
"@transifex/native": "^6.0.0",
36+
"@transifex/native": "^6.0.1",
3737
"eslint": "^8.10.0",
3838
"eslint-config-airbnb-base": "^15.0.0",
3939
"eslint-plugin-import": "^2.25.4",

packages/i18next/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@transifex/i18next",
3-
"version": "6.0.0",
3+
"version": "6.0.1",
44
"description": "i18next backend plugin for Transifex Native",
55
"keywords": [
66
"i18next",
@@ -54,6 +54,6 @@
5454
"webpack-cli": "^4.9.2"
5555
},
5656
"dependencies": {
57-
"@transifex/native": "^6.0.0"
57+
"@transifex/native": "^6.0.1"
5858
}
5959
}

packages/jsonapi/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@transifex/jsonapi",
3-
"version": "6.0.0",
3+
"version": "6.0.1",
44
"description": "{json:api} SDK library",
55
"keywords": [
66
"jsonapi",

packages/native/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@transifex/native",
3-
"version": "6.0.0",
3+
"version": "6.0.1",
44
"description": "i18n framework using Transifex Native",
55
"keywords": [
66
"transifex",

packages/react/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@transifex/react",
3-
"version": "6.0.0",
3+
"version": "6.0.1",
44
"description": "i18n React framework using Transifex Native",
55
"keywords": [
66
"transifex",
@@ -45,7 +45,7 @@
4545
"devDependencies": {
4646
"@testing-library/jest-dom": "^5.16.4",
4747
"@testing-library/react": "^13.2.0",
48-
"@transifex/native": "^6.0.0",
48+
"@transifex/native": "^6.0.1",
4949
"eslint": "^6.6.0",
5050
"eslint-config-airbnb": "^18.2.0",
5151
"eslint-plugin-import": "^2.26.0",

packages/vue2/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@transifex/vue2",
3-
"version": "6.0.0",
3+
"version": "6.0.1",
44
"description": "Vue i18n framework using Transifex Native",
55
"keywords": [
66
"transifex",
@@ -45,7 +45,7 @@
4545
"@babel/preset-env": "^7.17.10",
4646
"@testing-library/jest-dom": "^5.16.4",
4747
"@testing-library/vue": "^5.8.2",
48-
"@transifex/native": "^6.0.0",
48+
"@transifex/native": "^6.0.1",
4949
"@vue/compiler-sfc": "^3.2.33",
5050
"@vue/vue2-jest": "^27.0.0",
5151
"babel-jest": "^27.5.1",

packages/vue3/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@transifex/vue3",
3-
"version": "6.0.0",
3+
"version": "6.0.1",
44
"description": "Vue3 i18n framework using Transifex Native",
55
"keywords": [
66
"transifex",
@@ -64,7 +64,7 @@
6464
"@babel/preset-env": "^7.20.2",
6565
"@testing-library/jest-dom": "^5.16.5",
6666
"@testing-library/vue": "^6.6.1",
67-
"@transifex/native": "^6.0.0",
67+
"@transifex/native": "^6.0.1",
6868
"@vue/compiler-sfc": "^3.2.45",
6969
"@vue/vue3-jest": "^29.2.0",
7070
"babel-jest": "^29.3.1",

0 commit comments

Comments
 (0)