-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(all): display translation progress in percentage (#211)
* feat(all): display translation progress in percentage * add cocktails * update version
- Loading branch information
1 parent
ac732b4
commit a000c64
Showing
11 changed files
with
184 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
• Added more cocktails 🍸 | ||
• Added Russian language | ||
• Added Polish language |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -95,4 +95,4 @@ | |
"or": "eller", | ||
"show-mocktails": "Visa Mocktails", | ||
"all-ingredients": "Alla ingredienser" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
export class TranslationStatus { | ||
public basic: number | undefined; | ||
public ingredients: number | undefined; | ||
public isDefaultLanguage: boolean; | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import ca from '../../src/locales/ca/translation.json'; | ||
import de from '../../src/locales/de/translation.json'; | ||
import en from '../../src/locales/en/translation.json'; | ||
import es from '../../src/locales/es/translation.json'; | ||
import fr from '../../src/locales/fr/translation.json'; | ||
import it from '../../src/locales/it/translation.json'; | ||
import nl from '../../src/locales/nl/translation.json'; | ||
import pl from '../../src/locales/pl/translation.json'; | ||
import ru from '../../src/locales/ru/translation.json'; | ||
import sv from '../../src/locales/sv/translation.json'; | ||
|
||
describe('Locales Test', () => { | ||
test('No empty values', () => { | ||
expect(Object.values(ca).filter(x => x.toString().trim() === '').length).toEqual(0); | ||
expect(Object.values(de).filter(x => x.toString().trim() === '').length).toEqual(0); | ||
expect(Object.values(en).filter(x => x.toString().trim() === '').length).toEqual(0); | ||
expect(Object.values(es).filter(x => x.toString().trim() === '').length).toEqual(0); | ||
expect(Object.values(fr).filter(x => x.toString().trim() === '').length).toEqual(0); | ||
expect(Object.values(it).filter(x => x.toString().trim() === '').length).toEqual(0); | ||
expect(Object.values(nl).filter(x => x.toString().trim() === '').length).toEqual(0); | ||
expect(Object.values(pl).filter(x => x.toString().trim() === '').length).toEqual(0); | ||
expect(Object.values(ru).filter(x => x.toString().trim() === '').length).toEqual(0); | ||
expect(Object.values(sv).filter(x => x.toString().trim() === '').length).toEqual(0); | ||
}); | ||
}); |