mirror of
https://github.com/Horizontal42/summarum.git
synced 2026-11-10 21:31:59 +03:00
add sterling/quid/стерлинг phrases for GBP
This commit is contained in:
parent
0c193a406c
commit
37fd32501b
2 changed files with 12 additions and 2 deletions
|
|
@ -162,6 +162,16 @@ describe("currency", () => {
|
||||||
expect(calc("$10 + $5")).toBe("$15");
|
expect(calc("$10 + $5")).toBe("$15");
|
||||||
expect(calc("$10 + 20%")).toBe("$12");
|
expect(calc("$10 + 20%")).toBe("$12");
|
||||||
});
|
});
|
||||||
|
it("GBP↔RUB via natural phrases", () => {
|
||||||
|
// "sterling" and "quid" as English shortcuts (bare "pounds" is weight, not GBP)
|
||||||
|
expect(calc("100 sterling in RUB")).toBe("40,000 ₽");
|
||||||
|
expect(calc("100 quid in rubles")).toBe("40,000 ₽");
|
||||||
|
// Russian: "стерлинг" (bare "фунт" is weight unit, not GBP)
|
||||||
|
expect(calc("100 стерлингов в рублях")).toBe("40,000 ₽");
|
||||||
|
// existing multi-word forms still work
|
||||||
|
expect(calc("100 GBP in RUB")).toBe("40,000 ₽");
|
||||||
|
expect(calc("£100 in RUB")).toBe("40,000 ₽");
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
describe("numeral systems", () => {
|
describe("numeral systems", () => {
|
||||||
|
|
|
||||||
|
|
@ -123,7 +123,7 @@ export const EN: VocabLocale = {
|
||||||
"FKP.format": "£ %@",
|
"FKP.format": "£ %@",
|
||||||
"FKP.variants": "Falkland Islands Pounds,Falkland Islands Pound,Falkland Pounds",
|
"FKP.variants": "Falkland Islands Pounds,Falkland Islands Pound,Falkland Pounds",
|
||||||
"GBP.format": "£ %@",
|
"GBP.format": "£ %@",
|
||||||
"GBP.variants": "Pound sterling,Pounds sterling,£,£,british pound,british pounds",
|
"GBP.variants": "Pound sterling,Pounds sterling,£,£,british pound,british pounds,sterling,sterlings,quid,quids",
|
||||||
"GEL.format": "%@ lari",
|
"GEL.format": "%@ lari",
|
||||||
"GEL.variants": "Lari,Georgian Lari",
|
"GEL.variants": "Lari,Georgian Lari",
|
||||||
"GHS.format": "GH₵ %@",
|
"GHS.format": "GH₵ %@",
|
||||||
|
|
@ -646,7 +646,7 @@ export const RU: VocabLocale = {
|
||||||
"FKP.format": "%@ £",
|
"FKP.format": "%@ £",
|
||||||
"FKP.variants": "Фунт Фолклендских островов,Фолклендский фунт,Фолклендских фунтов,Фолклендских фунтах",
|
"FKP.variants": "Фунт Фолклендских островов,Фолклендский фунт,Фолклендских фунтов,Фолклендских фунтах",
|
||||||
"GBP.format": "%@ £",
|
"GBP.format": "%@ £",
|
||||||
"GBP.variants": "Фунт стерлингов,Фунтов стерлингов,Фунтах стерлингов,Британский фунт,Британских фунтов,Фунт,Фунтов,Британских фунтах,Фунтах",
|
"GBP.variants": "Фунт стерлингов,Фунтов стерлингов,Фунтах стерлингов,Британский фунт,Британских фунтов,Британских фунтах,стерлинг,стерлинга,стерлингов,стерлинги,стерлингам,стерлингами,стерлингах",
|
||||||
"GEL.variants": "Грузинский лари,Лари",
|
"GEL.variants": "Грузинский лари,Лари",
|
||||||
"GHS.format": "%@ GH₵",
|
"GHS.format": "%@ GH₵",
|
||||||
"GHS.variants": "Ганский седи,Седи",
|
"GHS.variants": "Ганский седи,Седи",
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue