From d98afe3518400619eb0286f38ca4e7e3088414fa Mon Sep 17 00:00:00 2001 From: Jonas Wanke Date: Tue, 31 Dec 2024 11:51:48 +0100 Subject: [PATCH] Generate test data for dutch localization --- test/codecs/text/data.yaml | 133 ++++++++++++++++++++++++++++++++ test/codecs/text/text_test.dart | 3 +- 2 files changed, 135 insertions(+), 1 deletion(-) diff --git a/test/codecs/text/data.yaml b/test/codecs/text/data.yaml index fc4eb8b..d9f99b4 100644 --- a/test/codecs/text/data.yaml +++ b/test/codecs/text/data.yaml @@ -1,18 +1,24 @@ RRULE:FREQ=WEEKLY;BYMONTH=1,2,3,8,9;BYDAY=MO,WE,TH,FR,SU: en: "Weekly in January – March, August & September on Monday, Wednesday – Friday & Sunday" + nl: "Wekelijks in januari – maart, augustus & september op maandag, woensdag – vrijdag & zondag" RRULE:FREQ=WEEKLY;INTERVAL=2;BYMONTH=1,2,3;BYDAY=MO,TU,WE,TH,FR,SU: en: Every other week in January – March on weekdays & Sunday + nl: Om de twee week in januari – maart op weekdagen & zondag RRULE:FREQ=MONTHLY;BYDAY=MO,TU,WE,1TH,1FR,2TH,2FR,2SA,-2TH,-2FR,-2SU,-1TH,-1FR,-1SU;BYMONTHDAY=1,2,3,4,5,26,-3,-2,-1: en: "Monthly on every Monday – Wednesday, the 1st Thursday & Friday, the 2nd Thursday – Saturday, the 2nd-to-last Thursday, Friday & Sunday, and the last Thursday, Friday & Sunday that are also the 1st – 5th, 26th, or 3rd-to-last – last day of the month" + nl: "Maandelijks op elke maandag – woensdag, de 1ste donderdag & vrijdag, de 2de donderdag – zaterdag, de 2de tot laatste donderdag, vrijdag & zondag, en de laatste donderdag, vrijdag & zondag die ook op de 1ste – 5de, 26de, of 3de tot laatste – laatste dag van de maand" # Daily RRULE:FREQ=DAILY;BYDAY=MO: en: Daily on Monday + nl: Dagelijks op maandag RRULE:FREQ=DAILY;INTERVAL=2;BYDAY=MO: en: Every other day on Monday + nl: Om de twee dag op maandag RRULE:FREQ=DAILY;INTERVAL=4;BYDAY=MO: en: Every 4 days on Monday + nl: Om de 4 dags op maandag # 0/1 digits in the comment before a text function mean whether each of # bySetPositions, byMonths, byMonthDays & byWeekDays (in that order) is @@ -21,58 +27,76 @@ RRULE:FREQ=DAILY;INTERVAL=4;BYDAY=MO: # 0000 RRULE:FREQ=DAILY: en: Daily + nl: Dagelijks # 0001 RRULE:FREQ=DAILY;BYDAY=MO,TH: en: Daily on Monday & Thursday + nl: Dagelijks op maandag & donderdag # 0010 RRULE:FREQ=DAILY;BYMONTHDAY=1,-1: en: Daily on the 1st & last day of the month + nl: Dagelijks op de 1ste & laatste dag van de maand # 0011 RRULE:FREQ=DAILY;BYMONTHDAY=1,-1;BYDAY=MO,TH: en: Daily on Monday & Thursday that are also the 1st or last day of the month + nl: Dagelijks op maandag & donderdag die ook op de 1ste of laatste dag van de maand # 0100 RRULE:FREQ=DAILY;BYMONTH=1,12: en: Daily in January & December + nl: Dagelijks in januari & december # 0101 RRULE:FREQ=DAILY;BYMONTH=1,12;BYDAY=MO,TH: en: Daily in January & December on Monday & Thursday + nl: Dagelijks in januari & december op maandag & donderdag # 0110 RRULE:FREQ=DAILY;BYMONTH=1,12;BYMONTHDAY=1,-1: en: Daily in January & December on the 1st & last day of the month + nl: Dagelijks in januari & december op de 1ste & laatste dag van de maand # 0111 RRULE:FREQ=DAILY;BYMONTH=1,12;BYMONTHDAY=1,-1;BYDAY=MO,TH: en: Daily in January & December on Monday & Thursday that are also the 1st or last day of the month + nl: Dagelijks in januari & december op maandag & donderdag die ook op de 1ste of laatste dag van de maand # 1000: invalid # 1001 RRULE:FREQ=DAILY;BYSETPOS=1,-2;BYDAY=MO,TH: en: Daily on the 1st & 2nd-to-last instance of Monday & Thursday + nl: Dagelijks op de 1ste & 2de tot laatste van maandag & donderdag # 1010 RRULE:FREQ=DAILY;BYSETPOS=1,-2;BYMONTHDAY=1,-1: en: Daily on the 1st & 2nd-to-last instance of the 1st & last day of the month + nl: Dagelijks op de 1ste & 2de tot laatste van de 1ste & laatste dag van de maand # 1011 RRULE:FREQ=DAILY;BYSETPOS=1,-2;BYMONTHDAY=1,-1;BYDAY=MO,TH: en: Daily on the 1st & 2nd-to-last instance of Monday & Thursday that are also the 1st or last day of the month + nl: Dagelijks op de 1ste & 2de tot laatste van maandag & donderdag die ook op de 1ste of laatste dag van de maand # 1100 RRULE:FREQ=DAILY;BYSETPOS=1,-2;BYMONTH=1,12: en: Daily in January & December on the 1st & 2nd-to-last instance + nl: Dagelijks in januari & december op de 1ste & 2de tot laatste # 1101 RRULE:FREQ=DAILY;BYSETPOS=1,-2;BYMONTH=1,12;BYDAY=MO,TH: en: Daily in January & December on the 1st & 2nd-to-last instance of Monday & Thursday + nl: Dagelijks in januari & december op de 1ste & 2de tot laatste van maandag & donderdag # 1110 RRULE:FREQ=DAILY;BYSETPOS=1,-2;BYMONTH=1,12;BYMONTHDAY=1,-1: en: Daily in January & December on the 1st & 2nd-to-last instance of the 1st & last day of the month + nl: Dagelijks in januari & december op de 1ste & 2de tot laatste van de 1ste & laatste dag van de maand # 1111 RRULE:FREQ=DAILY;BYSETPOS=1,-2;BYMONTH=1,12;BYMONTHDAY=1,-1;BYDAY=MO,TH: en: Daily in January & December on the 1st & 2nd-to-last instance of Monday & Thursday that are also the 1st or last day of the month + nl: Dagelijks in januari & december op de 1ste & 2de tot laatste van maandag & donderdag die ook op de 1ste of laatste dag van de maand # Weekly RRULE:FREQ=WEEKLY;BYDAY=MO: en: Weekly on Monday + nl: Wekelijks op maandag RRULE:FREQ=WEEKLY;INTERVAL=2;BYDAY=MO: en: Every other week on Monday + nl: Om de twee week op maandag RRULE:FREQ=WEEKLY;INTERVAL=4;BYDAY=MO: en: Every 4 weeks on Monday + nl: Om de 4 weeks op maandag # 0/1 digits in the comment before a text function mean whether each of # bySetPositions, byMonths & byWeekDays (in that order) is included. @@ -80,38 +104,49 @@ RRULE:FREQ=WEEKLY;INTERVAL=4;BYDAY=MO: # 000 RRULE:FREQ=WEEKLY: en: Weekly + nl: Wekelijks # 001 RRULE:FREQ=WEEKLY;BYDAY=MO,TH: en: Weekly on Monday & Thursday + nl: Wekelijks op maandag & donderdag # 010 RRULE:FREQ=WEEKLY;BYMONTH=1,12: en: Weekly in January & December + nl: Wekelijks in januari & december # 011 RRULE:FREQ=WEEKLY;BYMONTH=1,12;BYDAY=MO,TH: en: Weekly in January & December on Monday & Thursday + nl: Wekelijks in januari & december op maandag & donderdag # 100: invalid # 101 RRULE:FREQ=WEEKLY;BYSETPOS=1,-2;BYDAY=MO,TH: en: Weekly on the 1st & 2nd-to-last instance of Monday & Thursday + nl: Wekelijks op de 1ste & 2de tot laatste van maandag & donderdag # 110 RRULE:FREQ=WEEKLY;BYSETPOS=1,-2;BYMONTH=1,12: en: Weekly in January & December on the 1st & 2nd-to-last instance + nl: Wekelijks in januari & december op de 1ste & 2de tot laatste # 111 RRULE:FREQ=WEEKLY;BYSETPOS=1,-2;BYMONTH=1,12;BYDAY=MO,TH: en: Weekly in January & December on the 1st & 2nd-to-last instance of Monday & Thursday + nl: Wekelijks in januari & december op de 1ste & 2de tot laatste van maandag & donderdag # Monthly RRULE:FREQ=MONTHLY;BYDAY=MO: en: Monthly on every Monday + nl: Maandelijks op elke maandag RRULE:FREQ=MONTHLY;INTERVAL=2;BYDAY=MO: en: Every other month on every Monday + nl: Om de twee maand op elke maandag RRULE:FREQ=MONTHLY;INTERVAL=4;BYDAY=MO: en: Every 4 months on every Monday + nl: Om de 4 maands op elke maandag # https://github.com/JonasWanke/rrule/issues/13 RRULE:FREQ=MONTHLY;INTERVAL=1;BYSETPOS=-1;BYDAY=MO,TU,WE,TH,FR,SA,SU: en: Monthly on the last day + nl: Maandelijks op de laatste dag # 0/1 digits in the comment before a text function mean whether each of # bySetPositions, byMonths, byMonthDays & byWeekDays (in that order) is @@ -120,58 +155,76 @@ RRULE:FREQ=MONTHLY;INTERVAL=1;BYSETPOS=-1;BYDAY=MO,TU,WE,TH,FR,SA,SU: # 0000 RRULE:FREQ=MONTHLY: en: Monthly + nl: Maandelijks # 0001 RRULE:FREQ=MONTHLY;BYDAY=MO,-1TH: en: Monthly on every Monday & the last Thursday + nl: Maandelijks op elke maandag & de laatste donderdag # 0010 RRULE:FREQ=MONTHLY;BYMONTHDAY=1,-1: en: Monthly on the 1st & last day + nl: Maandelijks op de 1ste & laatste dag # 0011 RRULE:FREQ=MONTHLY;BYMONTHDAY=1,-1;BYDAY=MO,-1TH: en: Monthly on every Monday & the last Thursday that are also the 1st or last day of the month + nl: Maandelijks op elke maandag & de laatste donderdag die ook op de 1ste of laatste dag van de maand # 0100 RRULE:FREQ=MONTHLY;BYMONTH=1,12: en: Monthly in January & December + nl: Maandelijks in januari & december # 0101 RRULE:FREQ=MONTHLY;BYMONTH=1,12;BYDAY=MO,-1TH: en: Monthly in January & December on every Monday & the last Thursday + nl: Maandelijks in januari & december op elke maandag & de laatste donderdag # 0110 RRULE:FREQ=MONTHLY;BYMONTH=1,12;BYMONTHDAY=1,-1: en: Monthly in January & December on the 1st & last day + nl: Maandelijks in januari & december op de 1ste & laatste dag # 0111 RRULE:FREQ=MONTHLY;BYMONTH=1,12;BYMONTHDAY=1,-1;BYDAY=MO,-1TH: en: Monthly in January & December on every Monday & the last Thursday that are also the 1st or last day of the month + nl: Maandelijks in januari & december op elke maandag & de laatste donderdag die ook op de 1ste of laatste dag van de maand # 1000: invalid # 1001 RRULE:FREQ=MONTHLY;BYSETPOS=1,-2;BYDAY=MO,-1TH: en: Monthly on the 1st & 2nd-to-last instance of every Monday & the last Thursday + nl: Maandelijks op de 1ste & 2de tot laatste van elke maandag & de laatste donderdag # 1010 RRULE:FREQ=MONTHLY;BYSETPOS=1,-2;BYMONTHDAY=1,-1: en: Monthly on the 1st & 2nd-to-last instance of the 1st & last day + nl: Maandelijks op de 1ste & 2de tot laatste van de 1ste & laatste dag # 1011 RRULE:FREQ=MONTHLY;BYSETPOS=1,-2;BYMONTHDAY=1,-1;BYDAY=MO,-1TH: en: Monthly on the 1st & 2nd-to-last instance of every Monday & the last Thursday that are also the 1st or last day of the month + nl: Maandelijks op de 1ste & 2de tot laatste van elke maandag & de laatste donderdag die ook op de 1ste of laatste dag van de maand # 1100 RRULE:FREQ=MONTHLY;BYSETPOS=1,-2;BYMONTH=1,12: en: Monthly in January & December on the 1st & 2nd-to-last instance + nl: Maandelijks in januari & december op de 1ste & 2de tot laatste # 1101 RRULE:FREQ=MONTHLY;BYSETPOS=1,-2;BYMONTH=1,12;BYDAY=MO,-1TH: en: Monthly in January & December on the 1st & 2nd-to-last instance of every Monday & the last Thursday + nl: Maandelijks in januari & december op de 1ste & 2de tot laatste van elke maandag & de laatste donderdag # 1110 RRULE:FREQ=MONTHLY;BYSETPOS=1,-2;BYMONTH=1,12;BYMONTHDAY=1,-1: en: Monthly in January & December on the 1st & 2nd-to-last instance of the 1st & last day + nl: Maandelijks in januari & december op de 1ste & 2de tot laatste van de 1ste & laatste dag # 1111 RRULE:FREQ=MONTHLY;BYSETPOS=1,-2;BYMONTH=1,12;BYMONTHDAY=1,-1;BYDAY=MO,-1TH: en: Monthly in January & December on the 1st & 2nd-to-last instance of every Monday & the last Thursday that are also the 1st or last day of the month + nl: Maandelijks in januari & december op de 1ste & 2de tot laatste van elke maandag & de laatste donderdag die ook op de 1ste of laatste dag van de maand # Yearly RRULE:FREQ=YEARLY;BYDAY=MO: en: Annually on every Monday + nl: Jaarlijks op elke maandag RRULE:FREQ=YEARLY;INTERVAL=2;BYDAY=MO: en: Every other year on every Monday + nl: Om de twee jaar op elke maandag RRULE:FREQ=YEARLY;INTERVAL=4;BYDAY=MO: en: Every 4 years on every Monday + nl: Om de 4 jaars op elke maandag # 0/1 digits in the comment before a text function mean whether each of # bySetPositions, byMonths, byWeeks, byYearDays, byMonthDays & byWeekDays @@ -180,229 +233,309 @@ RRULE:FREQ=YEARLY;INTERVAL=4;BYDAY=MO: # 000000 RRULE:FREQ=YEARLY: en: Annually + nl: Jaarlijks # 000001 RRULE:FREQ=YEARLY;BYDAY=MO,-1TH: en: Annually on every Monday & the last Thursday of the year + nl: Jaarlijks op elke maandag & de laatste donderdag van de jaar # 000010 RRULE:FREQ=YEARLY;BYMONTHDAY=1,-1: en: Annually on the 1st & last day of the month + nl: Jaarlijks op de 1ste & laatste dag van de maand # 000011 RRULE:FREQ=YEARLY;BYMONTHDAY=1,-1;BYDAY=MO,-1TH: en: Annually on every Monday & the last Thursday of the year that are also the 1st or last day of the month + nl: Jaarlijks op elke maandag & de laatste donderdag van de jaar die ook op de 1ste of laatste dag van de maand # 000100 RRULE:FREQ=YEARLY;BYYEARDAY=1,-1: en: Annually on the 1st & last day of the year + nl: Jaarlijks op de 1ste & laatste dag van het jaar # 000101 RRULE:FREQ=YEARLY;BYYEARDAY=1,-1;BYDAY=MO,-1TH: en: Annually on every Monday & the last Thursday of the year that are also the 1st or last day of the year + nl: Jaarlijks op elke maandag & de laatste donderdag van de jaar die ook op de 1ste of laatste dag van het jaar # 000110 RRULE:FREQ=YEARLY;BYYEARDAY=1,-1;BYMONTHDAY=1,-1: en: Annually on the 1st & last day of the month that are also the 1st or last day of the year + nl: Jaarlijks op de 1ste & laatste dag van de maand die ook op de 1ste of laatste dag van het jaar # 000111 RRULE:FREQ=YEARLY;BYYEARDAY=1,-1;BYMONTHDAY=1,-1;BYDAY=MO,-1TH: en: Annually on every Monday & the last Thursday of the year that are also the 1st or last day of the month and that are also the 1st or last day of the year + nl: Jaarlijks op elke maandag & de laatste donderdag van de jaar die ook op de 1ste of laatste dag van de maand en die ook op de 1ste of laatste dag van het jaar # 001000 RRULE:FREQ=YEARLY;BYWEEKNO=1,-1: en: Annually in the 1st & last week of the year + nl: Jaarlijks in week 1ste & laatste # 001001 RRULE:FREQ=YEARLY;BYWEEKNO=1,-1;BYDAY=MO,WE: en: Annually on every Monday & Wednesday in the 1st & last week of the year + nl: Jaarlijks op elke maandag & woensdag in week 1ste & laatste # 001010 RRULE:FREQ=YEARLY;BYWEEKNO=1,-1;BYMONTHDAY=1,-1: en: Annually on the 1st & last day of the month that are also in the 1st or last week of the year + nl: Jaarlijks op de 1ste & laatste dag van de maand die ook in week 1ste of laatste # 001011 RRULE:FREQ=YEARLY;BYWEEKNO=1,-1;BYMONTHDAY=1,-1;BYDAY=MO,WE: en: Annually on every Monday & Wednesday that are also the 1st or last day of the month and that are also in the 1st or last week of the year + nl: Jaarlijks op elke maandag & woensdag die ook op de 1ste of laatste dag van de maand en die ook in week 1ste of laatste # 001100 RRULE:FREQ=YEARLY;BYWEEKNO=1,-1;BYYEARDAY=1,-1: en: Annually on the 1st & last day of the year that are also in the 1st or last week of the year + nl: Jaarlijks op de 1ste & laatste dag van het jaar die ook in week 1ste of laatste # 001101 RRULE:FREQ=YEARLY;BYWEEKNO=1,-1;BYYEARDAY=1,-1;BYDAY=MO,WE: en: Annually on every Monday & Wednesday that are also the 1st or last day of the year and that are also in the 1st or last week of the year + nl: Jaarlijks op elke maandag & woensdag die ook op de 1ste of laatste dag van het jaar en die ook in week 1ste of laatste # 001110 RRULE:FREQ=YEARLY;BYWEEKNO=1,-1;BYYEARDAY=1,-1;BYMONTHDAY=1,-1: en: Annually on the 1st & last day of the month that are also the 1st or last day of the year and that are also in the 1st or last week of the year + nl: Jaarlijks op de 1ste & laatste dag van de maand die ook op de 1ste of laatste dag van het jaar en die ook in week 1ste of laatste # 001111 RRULE:FREQ=YEARLY;BYWEEKNO=1,-1;BYYEARDAY=1,-1;BYMONTHDAY=1,-1;BYDAY=MO,WE: en: "Annually on every Monday & Wednesday that are also the 1st or last day of the month, that are also the 1st or last day of the year, and that are also in the 1st or last week of the year" + nl: "Jaarlijks op elke maandag & woensdag die ook op de 1ste of laatste dag van de maand, die ook op de 1ste of laatste dag van het jaar, en die ook in week 1ste of laatste" # 010000 RRULE:FREQ=YEARLY;BYMONTH=1,12: en: Annually in January & December + nl: Jaarlijks in januari & december # 010001 RRULE:FREQ=YEARLY;BYMONTH=1,12;BYDAY=MO,-1TH: en: Annually on every Monday & the last Thursday of the month in January & December + nl: Jaarlijks op elke maandag & de laatste donderdag van de maand in januari & december # 010010 RRULE:FREQ=YEARLY;BYMONTH=1,12;BYMONTHDAY=1,-1: en: Annually on the 1st & last day of the month in January & December + nl: Jaarlijks op de 1ste & laatste dag van de maand in januari & december # 010011 # TODO(JonasWanke): the 1st or last day in January or December RRULE:FREQ=YEARLY;BYMONTH=1,12;BYMONTHDAY=1,-1;BYDAY=MO,-1TH: en: Annually on every Monday & the last Thursday of the year that are also the 1st or last day of the month and that are also in January or December + nl: Jaarlijks op elke maandag & de laatste donderdag van de jaar die ook op de 1ste of laatste dag van de maand en die ook in januari of december # 010100 RRULE:FREQ=YEARLY;BYMONTH=1,12;BYYEARDAY=1,-1: en: Annually on the 1st & last day of the year that are also in January or December + nl: Jaarlijks op de 1ste & laatste dag van het jaar die ook in januari of december # 010101 RRULE:FREQ=YEARLY;BYMONTH=1,12;BYYEARDAY=1,-1;BYDAY=MO,-1TH: en: Annually on every Monday & the last Thursday of the year that are also the 1st or last day of the year and that are also in January or December + nl: Jaarlijks op elke maandag & de laatste donderdag van de jaar die ook op de 1ste of laatste dag van het jaar en die ook in januari of december # 010110 RRULE:FREQ=YEARLY;BYMONTH=1,12;BYYEARDAY=1,-1;BYMONTHDAY=1,-1: en: Annually on the 1st & last day of the month that are also the 1st or last day of the year and that are also in January or December + nl: Jaarlijks op de 1ste & laatste dag van de maand die ook op de 1ste of laatste dag van het jaar en die ook in januari of december # 010111 RRULE:FREQ=YEARLY;BYMONTH=1,12;BYYEARDAY=1,-1;BYMONTHDAY=1,-1;BYDAY=MO,-1TH: en: "Annually on every Monday & the last Thursday of the year that are also the 1st or last day of the month, that are also the 1st or last day of the year, and that are also in January or December" + nl: "Jaarlijks op elke maandag & de laatste donderdag van de jaar die ook op de 1ste of laatste dag van de maand, die ook op de 1ste of laatste dag van het jaar, en die ook in januari of december" # 011000 RRULE:FREQ=YEARLY;BYMONTH=1,12;BYWEEKNO=1,-1: en: Annually in the 1st & last week of the year that are also in January or December + nl: Jaarlijks in week 1ste & laatste die ook in januari of december # 011001 RRULE:FREQ=YEARLY;BYMONTH=1,12;BYWEEKNO=1,-1;BYDAY=MO,WE: en: Annually on every Monday & Wednesday in the 1st & last week of the year that are also in January or December + nl: Jaarlijks op elke maandag & woensdag in week 1ste & laatste die ook in januari of december # 011010 RRULE:FREQ=YEARLY;BYMONTH=1,12;BYWEEKNO=1,-1;BYMONTHDAY=1,-1: en: Annually on the 1st & last day of the month that are also in the 1st or last week of the year and that are also in January or December + nl: Jaarlijks op de 1ste & laatste dag van de maand die ook in week 1ste of laatste en die ook in januari of december # 011011 RRULE:FREQ=YEARLY;BYMONTH=1,12;BYWEEKNO=1,-1;BYMONTHDAY=1,-1;BYDAY=MO,WE: en: "Annually on every Monday & Wednesday that are also the 1st or last day of the month, that are also in the 1st or last week of the year, and that are also in January or December" + nl: "Jaarlijks op elke maandag & woensdag die ook op de 1ste of laatste dag van de maand, die ook in week 1ste of laatste, en die ook in januari of december" # 011100 RRULE:FREQ=YEARLY;BYMONTH=1,12;BYWEEKNO=1,-1;BYYEARDAY=1,-1: en: Annually on the 1st & last day of the year that are also in the 1st or last week of the year and that are also in January or December + nl: Jaarlijks op de 1ste & laatste dag van het jaar die ook in week 1ste of laatste en die ook in januari of december # 011101 RRULE:FREQ=YEARLY;BYMONTH=1,12;BYWEEKNO=1,-1;BYYEARDAY=1,-1;BYDAY=MO,WE: en: "Annually on every Monday & Wednesday that are also the 1st or last day of the year, that are also in the 1st or last week of the year, and that are also in January or December" + nl: "Jaarlijks op elke maandag & woensdag die ook op de 1ste of laatste dag van het jaar, die ook in week 1ste of laatste, en die ook in januari of december" # 011110 RRULE:FREQ=YEARLY;BYMONTH=1,12;BYWEEKNO=1,-1;BYYEARDAY=1,-1;BYMONTHDAY=1,-1: en: "Annually on the 1st & last day of the month that are also the 1st or last day of the year, that are also in the 1st or last week of the year, and that are also in January or December" + nl: "Jaarlijks op de 1ste & laatste dag van de maand die ook op de 1ste of laatste dag van het jaar, die ook in week 1ste of laatste, en die ook in januari of december" # 011111 RRULE:FREQ=YEARLY;BYMONTH=1,12;BYWEEKNO=1,-1;BYYEARDAY=1,-1;BYMONTHDAY=1,-1;BYDAY=MO,WE: en: "Annually on every Monday & Wednesday that are also the 1st or last day of the month, that are also the 1st or last day of the year, that are also in the 1st or last week of the year, and that are also in January or December" + nl: "Jaarlijks op elke maandag & woensdag die ook op de 1ste of laatste dag van de maand, die ook op de 1ste of laatste dag van het jaar, die ook in week 1ste of laatste, en die ook in januari of december" # 100000: invalid # 100001 RRULE:FREQ=YEARLY;BYSETPOS=1,-2;BYDAY=MO,-1TH: en: Annually on the 1st & 2nd-to-last instance of every Monday & the last Thursday of the year + nl: Jaarlijks op de 1ste & 2de tot laatste van elke maandag & de laatste donderdag van de jaar # 100010 RRULE:FREQ=YEARLY;BYSETPOS=1,-2;BYMONTHDAY=1,-1: en: Annually on the 1st & 2nd-to-last instance of the 1st & last day of the month + nl: Jaarlijks op de 1ste & 2de tot laatste van de 1ste & laatste dag van de maand # 100011 RRULE:FREQ=YEARLY;BYSETPOS=1,-2;BYMONTHDAY=1,-1;BYDAY=MO,-1TH: en: Annually on the 1st & 2nd-to-last instance of every Monday & the last Thursday of the year that are also the 1st or last day of the month + nl: Jaarlijks op de 1ste & 2de tot laatste van elke maandag & de laatste donderdag van de jaar die ook op de 1ste of laatste dag van de maand # 100100 RRULE:FREQ=YEARLY;BYSETPOS=1,-2;BYYEARDAY=1,-1: en: Annually on the 1st & 2nd-to-last instance of the 1st & last day of the year + nl: Jaarlijks op de 1ste & 2de tot laatste van de 1ste & laatste dag van het jaar # 100101 RRULE:FREQ=YEARLY;BYSETPOS=1,-2;BYYEARDAY=1,-1;BYDAY=MO,-1TH: en: Annually on the 1st & 2nd-to-last instance of every Monday & the last Thursday of the year that are also the 1st or last day of the year + nl: Jaarlijks op de 1ste & 2de tot laatste van elke maandag & de laatste donderdag van de jaar die ook op de 1ste of laatste dag van het jaar # 100110 RRULE:FREQ=YEARLY;BYSETPOS=1,-2;BYYEARDAY=1,-1;BYMONTHDAY=1,-1: en: Annually on the 1st & 2nd-to-last instance of the 1st & last day of the month that are also the 1st or last day of the year + nl: Jaarlijks op de 1ste & 2de tot laatste van de 1ste & laatste dag van de maand die ook op de 1ste of laatste dag van het jaar # 100111 RRULE:FREQ=YEARLY;BYSETPOS=1,-2;BYYEARDAY=1,-1;BYMONTHDAY=1,-1;BYDAY=MO,-1TH: en: Annually on the 1st & 2nd-to-last instance of every Monday & the last Thursday of the year that are also the 1st or last day of the month and that are also the 1st or last day of the year + nl: Jaarlijks op de 1ste & 2de tot laatste van elke maandag & de laatste donderdag van de jaar die ook op de 1ste of laatste dag van de maand en die ook op de 1ste of laatste dag van het jaar # 101000 RRULE:FREQ=YEARLY;BYSETPOS=1,-2;BYWEEKNO=1,-1: en: Annually on the 1st & 2nd-to-last instance of the 1st & last week of the year + nl: Jaarlijks op de 1ste & 2de tot laatste van week 1ste & laatste # 101001 RRULE:FREQ=YEARLY;BYSETPOS=1,-2;BYWEEKNO=1,-1;BYDAY=MO,WE: en: Annually on the 1st & 2nd-to-last instance of every Monday & Wednesday in the 1st & last week of the year + nl: Jaarlijks op de 1ste & 2de tot laatste van elke maandag & woensdag in week 1ste & laatste # 101010 RRULE:FREQ=YEARLY;BYSETPOS=1,-2;BYWEEKNO=1,-1;BYMONTHDAY=1,-1: en: Annually on the 1st & 2nd-to-last instance of the 1st & last day of the month that are also in the 1st or last week of the year + nl: Jaarlijks op de 1ste & 2de tot laatste van de 1ste & laatste dag van de maand die ook in week 1ste of laatste # 101011 RRULE:FREQ=YEARLY;BYSETPOS=1,-2;BYWEEKNO=1,-1;BYMONTHDAY=1,-1;BYDAY=MO,WE: en: Annually on the 1st & 2nd-to-last instance of every Monday & Wednesday that are also the 1st or last day of the month and that are also in the 1st or last week of the year + nl: Jaarlijks op de 1ste & 2de tot laatste van elke maandag & woensdag die ook op de 1ste of laatste dag van de maand en die ook in week 1ste of laatste # 101100 RRULE:FREQ=YEARLY;BYSETPOS=1,-2;BYWEEKNO=1,-1;BYYEARDAY=1,-1: en: Annually on the 1st & 2nd-to-last instance of the 1st & last day of the year that are also in the 1st or last week of the year + nl: Jaarlijks op de 1ste & 2de tot laatste van de 1ste & laatste dag van het jaar die ook in week 1ste of laatste # 101101 RRULE:FREQ=YEARLY;BYSETPOS=1,-2;BYWEEKNO=1,-1;BYYEARDAY=1,-1;BYDAY=MO,WE: en: Annually on the 1st & 2nd-to-last instance of every Monday & Wednesday that are also the 1st or last day of the year and that are also in the 1st or last week of the year + nl: Jaarlijks op de 1ste & 2de tot laatste van elke maandag & woensdag die ook op de 1ste of laatste dag van het jaar en die ook in week 1ste of laatste # 101110 RRULE:FREQ=YEARLY;BYSETPOS=1,-2;BYWEEKNO=1,-1;BYYEARDAY=1,-1;BYMONTHDAY=1,-1: en: Annually on the 1st & 2nd-to-last instance of the 1st & last day of the month that are also the 1st or last day of the year and that are also in the 1st or last week of the year + nl: Jaarlijks op de 1ste & 2de tot laatste van de 1ste & laatste dag van de maand die ook op de 1ste of laatste dag van het jaar en die ook in week 1ste of laatste # 101111 RRULE:FREQ=YEARLY;BYSETPOS=1,-2;BYWEEKNO=1,-1;BYYEARDAY=1,-1;BYMONTHDAY=1,-1;BYDAY=MO,WE: en: "Annually on the 1st & 2nd-to-last instance of every Monday & Wednesday that are also the 1st or last day of the month, that are also the 1st or last day of the year, and that are also in the 1st or last week of the year" + nl: "Jaarlijks op de 1ste & 2de tot laatste van elke maandag & woensdag die ook op de 1ste of laatste dag van de maand, die ook op de 1ste of laatste dag van het jaar, en die ook in week 1ste of laatste" # 110000 RRULE:FREQ=YEARLY;BYSETPOS=1,-2;BYMONTH=1,12: en: Annually on the 1st & 2nd-to-last instance of January & December + nl: Jaarlijks op de 1ste & 2de tot laatste van januari & december # 110001 RRULE:FREQ=YEARLY;BYSETPOS=1,-2;BYMONTH=1,12;BYDAY=MO,-1TH: en: Annually on the 1st & 2nd-to-last instance of every Monday & the last Thursday of the month in January & December + nl: Jaarlijks op de 1ste & 2de tot laatste van elke maandag & de laatste donderdag van de maand in januari & december # 110010 RRULE:FREQ=YEARLY;BYSETPOS=1,-2;BYMONTH=1,12;BYMONTHDAY=1,-1: en: Annually on the 1st & 2nd-to-last instance of the 1st & last day of the month in January & December + nl: Jaarlijks op de 1ste & 2de tot laatste van de 1ste & laatste dag van de maand in januari & december # 110011 RRULE:FREQ=YEARLY;BYSETPOS=1,-2;BYMONTH=1,12;BYMONTHDAY=1,-1;BYDAY=MO,-1TH: en: Annually on the 1st & 2nd-to-last instance of every Monday & the last Thursday of the year that are also the 1st or last day of the month and that are also in January or December + nl: Jaarlijks op de 1ste & 2de tot laatste van elke maandag & de laatste donderdag van de jaar die ook op de 1ste of laatste dag van de maand en die ook in januari of december # 110100 RRULE:FREQ=YEARLY;BYSETPOS=1,-2;BYMONTH=1,12;BYYEARDAY=1,-1: en: Annually on the 1st & 2nd-to-last instance of the 1st & last day of the year that are also in January or December + nl: Jaarlijks op de 1ste & 2de tot laatste van de 1ste & laatste dag van het jaar die ook in januari of december # 110101 RRULE:FREQ=YEARLY;BYSETPOS=1,-2;BYMONTH=1,12;BYYEARDAY=1,-1;BYDAY=MO,-1TH: en: Annually on the 1st & 2nd-to-last instance of every Monday & the last Thursday of the year that are also the 1st or last day of the year and that are also in January or December + nl: Jaarlijks op de 1ste & 2de tot laatste van elke maandag & de laatste donderdag van de jaar die ook op de 1ste of laatste dag van het jaar en die ook in januari of december # 110110 RRULE:FREQ=YEARLY;BYSETPOS=1,-2;BYMONTH=1,12;BYYEARDAY=1,-1;BYMONTHDAY=1,-1: en: Annually on the 1st & 2nd-to-last instance of the 1st & last day of the month that are also the 1st or last day of the year and that are also in January or December + nl: Jaarlijks op de 1ste & 2de tot laatste van de 1ste & laatste dag van de maand die ook op de 1ste of laatste dag van het jaar en die ook in januari of december # 110111 RRULE:FREQ=YEARLY;BYSETPOS=1,-2;BYMONTH=1,12;BYYEARDAY=1,-1;BYMONTHDAY=1,-1;BYDAY=MO,-1TH: en: "Annually on the 1st & 2nd-to-last instance of every Monday & the last Thursday of the year that are also the 1st or last day of the month, that are also the 1st or last day of the year, and that are also in January or December" + nl: "Jaarlijks op de 1ste & 2de tot laatste van elke maandag & de laatste donderdag van de jaar die ook op de 1ste of laatste dag van de maand, die ook op de 1ste of laatste dag van het jaar, en die ook in januari of december" # 111000 RRULE:FREQ=YEARLY;BYSETPOS=1,-2;BYMONTH=1,12;BYWEEKNO=1,-1: en: Annually on the 1st & 2nd-to-last instance of the 1st & last week of the year that are also in January or December + nl: Jaarlijks op de 1ste & 2de tot laatste van week 1ste & laatste die ook in januari of december # 111001 RRULE:FREQ=YEARLY;BYSETPOS=1,-2;BYMONTH=1,12;BYWEEKNO=1,-1;BYDAY=MO,WE: en: Annually on the 1st & 2nd-to-last instance of every Monday & Wednesday in the 1st & last week of the year that are also in January or December + nl: Jaarlijks op de 1ste & 2de tot laatste van elke maandag & woensdag in week 1ste & laatste die ook in januari of december # 111010 RRULE:FREQ=YEARLY;BYSETPOS=1,-2;BYMONTH=1,12;BYWEEKNO=1,-1;BYMONTHDAY=1,-1: en: Annually on the 1st & 2nd-to-last instance of the 1st & last day of the month that are also in the 1st or last week of the year and that are also in January or December + nl: Jaarlijks op de 1ste & 2de tot laatste van de 1ste & laatste dag van de maand die ook in week 1ste of laatste en die ook in januari of december # 111011 RRULE:FREQ=YEARLY;BYSETPOS=1,-2;BYMONTH=1,12;BYWEEKNO=1,-1;BYMONTHDAY=1,-1;BYDAY=MO,WE: en: "Annually on the 1st & 2nd-to-last instance of every Monday & Wednesday that are also the 1st or last day of the month, that are also in the 1st or last week of the year, and that are also in January or December" + nl: "Jaarlijks op de 1ste & 2de tot laatste van elke maandag & woensdag die ook op de 1ste of laatste dag van de maand, die ook in week 1ste of laatste, en die ook in januari of december" # 111100 RRULE:FREQ=YEARLY;BYSETPOS=1,-2;BYMONTH=1,12;BYWEEKNO=1,-1;BYYEARDAY=1,-1: en: Annually on the 1st & 2nd-to-last instance of the 1st & last day of the year that are also in the 1st or last week of the year and that are also in January or December + nl: Jaarlijks op de 1ste & 2de tot laatste van de 1ste & laatste dag van het jaar die ook in week 1ste of laatste en die ook in januari of december # 111101 RRULE:FREQ=YEARLY;BYSETPOS=1,-2;BYMONTH=1,12;BYWEEKNO=1,-1;BYYEARDAY=1,-1;BYDAY=MO,WE: en: "Annually on the 1st & 2nd-to-last instance of every Monday & Wednesday that are also the 1st or last day of the year, that are also in the 1st or last week of the year, and that are also in January or December" + nl: "Jaarlijks op de 1ste & 2de tot laatste van elke maandag & woensdag die ook op de 1ste of laatste dag van het jaar, die ook in week 1ste of laatste, en die ook in januari of december" # 111110 RRULE:FREQ=YEARLY;BYSETPOS=1,-2;BYMONTH=1,12;BYWEEKNO=1,-1;BYYEARDAY=1,-1;BYMONTHDAY=1,-1: en: "Annually on the 1st & 2nd-to-last instance of the 1st & last day of the month that are also the 1st or last day of the year, that are also in the 1st or last week of the year, and that are also in January or December" + nl: "Jaarlijks op de 1ste & 2de tot laatste van de 1ste & laatste dag van de maand die ook op de 1ste of laatste dag van het jaar, die ook in week 1ste of laatste, en die ook in januari of december" # 111111 RRULE:FREQ=YEARLY;BYSETPOS=1,-2;BYMONTH=1,12;BYWEEKNO=1,-1;BYYEARDAY=1,-1;BYMONTHDAY=1,-1;BYDAY=MO,WE: en: "Annually on the 1st & 2nd-to-last instance of every Monday & Wednesday that are also the 1st or last day of the month, that are also the 1st or last day of the year, that are also in the 1st or last week of the year, and that are also in January or December" + nl: "Jaarlijks op de 1ste & 2de tot laatste van elke maandag & woensdag die ook op de 1ste of laatste dag van de maand, die ook op de 1ste of laatste dag van het jaar, die ook in week 1ste of laatste, en die ook in januari of december" # All remaining examples taken from https://github.com/jakubroztocil/rrule/blob/3dc698300e5861311249e85e0e237708702b055d/test/nlp.test.ts, # though with modified texts. RRULE:FREQ=HOURLY: en: Hourly + nl: Uurlijks RRULE:INTERVAL=4;FREQ=HOURLY: en: Every 4 hours + nl: Om de 4 uurs RRULE:FREQ=WEEKLY;COUNT=20: en: "Weekly, 20 times" + nl: "Wekelijks, 20 keer" RRULE:FREQ=WEEKLY;UNTIL=20070101T080000Z: en: "Weekly, until Monday, January 1, 2007 8:00:00 AM" + nl: "Wekelijks, tot maandag 1 januari 2007 om 8:i uur" RRULE:FREQ=WEEKLY;BYDAY=TU: en: Weekly on Tuesday + nl: Wekelijks op dinsdag RRULE:FREQ=WEEKLY;BYDAY=MO,WE: en: Weekly on Monday & Wednesday + nl: Wekelijks op maandag & woensdag RRULE:FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR: en: Weekly on weekdays + nl: Wekelijks op weekdagen RRULE:INTERVAL=2;FREQ=WEEKLY: en: Every other week + nl: Om de twee week RRULE:FREQ=MONTHLY;BYMONTHDAY=4: en: Monthly on the 4th + nl: Maandelijks op de 4de RRULE:FREQ=MONTHLY;BYMONTHDAY=-4: en: Monthly on the 4th-to-last day + nl: Maandelijks op de 4de tot laatste dag RRULE:FREQ=MONTHLY;BYDAY=+3TU: en: Monthly on the 3rd Tuesday + nl: Maandelijks op de 3de dinsdag RRULE:FREQ=MONTHLY;BYDAY=-3TU: en: Monthly on the 3rd-to-last Tuesday + nl: Maandelijks op de 3de tot laatste dinsdag RRULE:FREQ=MONTHLY;BYDAY=-1MO: en: Monthly on the last Monday + nl: Maandelijks op de laatste maandag RRULE:FREQ=MONTHLY;BYDAY=-2FR: en: Monthly on the 2nd-to-last Friday + nl: Maandelijks op de 2de tot laatste vrijdag RRULE:INTERVAL=6;FREQ=MONTHLY: en: Every 6 months + nl: Om de 6 maands RRULE:FREQ=YEARLY;BYDAY=+1FR: en: Annually on the 1st Friday of the year + nl: Jaarlijks op de 1ste vrijdag van de jaar RRULE:FREQ=YEARLY;BYDAY=+13FR: en: Annually on the 13th Friday of the year + nl: Jaarlijks op de 13de vrijdag van de jaar diff --git a/test/codecs/text/text_test.dart b/test/codecs/text/text_test.dart index ab5067a..d698510 100644 --- a/test/codecs/text/text_test.dart +++ b/test/codecs/text/text_test.dart @@ -19,7 +19,7 @@ Future main() async { .mapValues((it) => it.value.cast()); for (final MapEntry(key: locale, value: l10n) in l10n.entries) { - group('locale: $locale', () { + group(locale, () { for (final MapEntry(key: rruleString, value: text) in data.entries) { test(rruleString, () { final rrule = RecurrenceRule.fromString(rruleString); @@ -43,5 +43,6 @@ Future main() async { Future> createL10n() async { return { 'en': await RruleL10nEn.create(), + 'nl': await RruleL10nNl.create(), }; }