Skip to content

Commit a014db9

Browse files
committed
Adding Phrase
1 parent f4d7b8d commit a014db9

File tree

3 files changed

+54
-74
lines changed

3 files changed

+54
-74
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,4 @@ testem.log
4040
# System files
4141
.DS_Store
4242
Thumbs.db
43+
.phrase.yml

.phrase.example.yml

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
phrase:
2+
access_token: your_access_token
3+
project_id: your_project_id
4+
push:
5+
sources:
6+
- file: ./src/locale/messages.xlf
7+
params:
8+
file_format: xlf
9+
pull:
10+
targets:
11+
- file: ./src/locale/messages.<locale_name>.xlf
12+
params:
13+
file_format: xlf

src/locale/messages.ar.xlf

+40-74
Original file line numberDiff line numberDiff line change
@@ -1,90 +1,56 @@
1-
<?xml version="1.0" encoding="UTF-8" ?>
2-
<xliff version="1.2" xmlns="urn:oasis:names:tc:xliff:document:1.2">
3-
<file source-language="en-CA" datatype="plaintext" original="ng2.template">
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" version="1.2">
3+
<file original="ng2.template" datatype="plaintext" source-language="en-CA" target-language="ar">
44
<body>
5-
<trans-unit id="1475737827206181859" datatype="html">
6-
<source>تطبيق تجريبي مصحاب لمقال في
7-
&lt;a href=&quot;<x id="PH" equiv-text="this.phraseBlogUrl"/>&quot;&gt;مدونة فريز&lt;/a&gt;
5+
<trans-unit id="1475737827206181859">
6+
<source xml:lang="en-CA">Demo companion app for
7+
&lt;a href="&lt;x id="PH" equiv-text="this.phraseBlogUrl"/&gt;"&gt;Phrase blog&lt;/a&gt;
8+
post.
9+
&lt;a href="&lt;x id="PH_1" equiv-text="this.angularUrl"/&gt;"&gt;Made with Angular&lt;/a&gt;.</source>
10+
<target xml:lang="ar">تطبيق تجريبي مصحاب لمقال في
11+
&lt;a href="<x id="PH" equiv-text="this.phraseBlogUrl"/>"&gt;مدونة فريز&lt;/a&gt;
812
.
9-
&lt;a href=&quot;<x id="PH_1" equiv-text="this.angularUrl"/>&quot;&gt;بني بواسطة أنجيولر&lt;/a&gt;.</source>
10-
<context-group purpose="location">
11-
<context context-type="sourcefile">src/app/footer/footer.component.ts</context>
12-
<context context-type="linenumber">11,14</context>
13-
</context-group>
13+
&lt;a href="<x id="PH_1" equiv-text="this.angularUrl"/>"&gt;بني بواسطة أنجيولر&lt;/a&gt;.</target>
1414
</trans-unit>
15-
<trans-unit id="8856905278208146821" datatype="html">
16-
<source> <x id="ICU" equiv-text="{cabinet.storeCount, plural, =0 {Sold out} =1
17-
{Available at 1 outlet} other {Available at
18-
{{ cabinet.storeCount }} outlets} }" xid="4465788077291796430"/> </source>
19-
<context-group purpose="location">
20-
<context context-type="sourcefile">src/app/home/home.component.html</context>
21-
<context context-type="linenumber">29,33</context>
22-
</context-group>
15+
<trans-unit id="1726363342938046830">
16+
<source xml:lang="en-CA">About</source>
17+
<target xml:lang="ar">نبذة عنا</target>
2318
</trans-unit>
24-
<trans-unit id="7185053985224017078" datatype="html">
25-
<source>{VAR_PLURAL, plural, =0 {Sold out} =1 {Available at 1 outlet} other {Available at
19+
<trans-unit id="2821179408673282599">
20+
<source xml:lang="en-CA">Home</source>
21+
<target xml:lang="ar">الرئيسية</target>
22+
</trans-unit>
23+
<trans-unit id="4481891408571585417">
24+
<source xml:lang="en-CA"> Add to cart </source>
25+
<target xml:lang="ar">أضف إلى السلة</target>
26+
</trans-unit>
27+
<trans-unit id="615967567956853879">
28+
<source xml:lang="en-CA">azcadea logo</source>
29+
<target xml:lang="ar">رمز أزكيديا</target>
30+
</trans-unit>
31+
<trans-unit id="6223458566712133696">
32+
<source xml:lang="en-CA">Image of <x id="PH" equiv-text="cabinet.name"/></source>
33+
<target xml:lang="ar">صورة <x id="PH" equiv-text="cabinet.name"/></target>
34+
</trans-unit>
35+
<trans-unit id="7185053985224017078">
36+
<source xml:lang="en-CA">{VAR_PLURAL, plural, =0 {Sold out} =1 {Available at 1 outlet} other {Available at
2637
<x id="INTERPOLATION"/> outlets}}</source>
27-
<target>
28-
{VAR_PLURAL, plural,
38+
<target xml:lang="ar">{VAR_PLURAL, plural,
2939
=0 {غير متوفر}
3040
=1 {متوفر عند فرع <x id="INTERPOLATION"/>}
3141
two {متوفر عند فرعين}
3242
few {متوفر عند <x id="INTERPOLATION"/> أفرع}
3343
many {متوفر عند <x id="INTERPOLATION"/> فرع}
3444
other {متوفر عند <x id="INTERPOLATION"/> فرع}
35-
}
36-
</target>
37-
<context-group purpose="location">
38-
<context context-type="sourcefile">src/app/home/home.component.html</context>
39-
<context context-type="linenumber">30,32</context>
40-
</context-group>
41-
</trans-unit>
42-
<trans-unit id="4481891408571585417" datatype="html">
43-
<source> Add to cart </source>
44-
<target>أضف إلى السلة</target>
45-
<context-group purpose="location">
46-
<context context-type="sourcefile">src/app/home/home.component.html</context>
47-
<context context-type="linenumber">48,50</context>
48-
</context-group>
49-
</trans-unit>
50-
<trans-unit id="6223458566712133696" datatype="html">
51-
<source>صورة <x id="PH" equiv-text="cabinet.name"/></source>
52-
<context-group purpose="location">
53-
<context context-type="sourcefile">src/app/home/home.component.ts</context>
54-
<context context-type="linenumber">19</context>
55-
</context-group>
56-
</trans-unit>
57-
<trans-unit id="615967567956853879" datatype="html">
58-
<source>azcadea logo</source>
59-
<target>رمز أزكيديا</target>
60-
<context-group purpose="location">
61-
<context context-type="sourcefile">src/app/navbar/navbar.component.html</context>
62-
<context context-type="linenumber">7</context>
63-
</context-group>
64-
</trans-unit>
65-
<trans-unit id="7285274704628585281" datatype="html">
66-
<source>azcadea</source>
67-
<target>أزكيديا</target>
68-
<context-group purpose="location">
69-
<context context-type="sourcefile">src/app/navbar/navbar.component.html</context>
70-
<context context-type="linenumber">11</context>
71-
</context-group>
45+
}</target>
7246
</trans-unit>
73-
<trans-unit id="2821179408673282599" datatype="html">
74-
<source>Home</source>
75-
<target>الرئيسية</target>
76-
<context-group purpose="location">
77-
<context context-type="sourcefile">src/app/navbar/navbar.component.ts</context>
78-
<context context-type="linenumber">8</context>
79-
</context-group>
47+
<trans-unit id="7285274704628585281">
48+
<source xml:lang="en-CA">azcadea</source>
49+
<target xml:lang="ar">أزكيديا</target>
8050
</trans-unit>
81-
<trans-unit id="1726363342938046830" datatype="html">
82-
<source>About</source>
83-
<target>نبذة عنا</target>
84-
<context-group purpose="location">
85-
<context context-type="sourcefile">src/app/navbar/navbar.component.ts</context>
86-
<context context-type="linenumber">9</context>
87-
</context-group>
51+
<trans-unit id="8856905278208146821">
52+
<source xml:lang="en-CA"> <x id="ICU" equiv-text="{cabinet.storeCount, plural, =0 {Sold out} =1 {Available at 1 outlet} other {Available at {{ cabinet.storeCount }} outlets} }" xid="4465788077291796430"/> </source>
53+
<target xml:lang="ar"> <x id="ICU" equiv-text="{cabinet.storeCount, plural, =0 {Sold out} =1 {Available at 1 outlet} other {Available at {{ cabinet.storeCount }} outlets} }" xid="4465788077291796430"/> </target>
8854
</trans-unit>
8955
</body>
9056
</file>

0 commit comments

Comments
 (0)