feat: adds localization to newly created angular app

This commit is contained in:
Markus Huggler
2020-11-09 23:23:35 +01:00
parent d004f0a59e
commit 7f72252f33
8 changed files with 370 additions and 708 deletions

View File

@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<xliff version="1.2" xmlns="urn:oasis:names:tc:xliff:document:1.2">
<file source-language="de" datatype="plaintext" original="ng2.template" target-language="en">
<body>
<trans-unit id="f3568c7ea2c6cd41cc00b5f08ac6427549982e32" datatype="html">
<source>Hallo Welt</source><target state="translated">Hello World</target>
<context-group purpose="location">
<context context-type="sourcefile">src/app/app.component.html</context>
<context context-type="linenumber">1</context>
</context-group>
</trans-unit></body>
</file>
</xliff>

14
src/locales/messages.xlf Normal file
View File

@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8" ?>
<xliff version="1.2" xmlns="urn:oasis:names:tc:xliff:document:1.2">
<file source-language="de" datatype="plaintext" original="ng2.template">
<body>
<trans-unit id="f3568c7ea2c6cd41cc00b5f08ac6427549982e32" datatype="html">
<source>Hallo Welt</source>
<context-group purpose="location">
<context context-type="sourcefile">src/app/app.component.html</context>
<context context-type="linenumber">1</context>
</context-group>
</trans-unit>
</body>
</file>
</xliff>