Created
January 3, 2019 15:51
-
-
Save Macadoshis/2f8cae371c2eaaeadae94fbc149851b8 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| [ | |
| [ | |
| [ | |
| "Mitternacht", | |
| "morgens", | |
| "vormittags", | |
| "mittags", | |
| "nachmittags", | |
| "abends", | |
| "nachts" | |
| ], | |
| null | |
| ], | |
| [ | |
| [ | |
| "Mitternacht", | |
| "Morgen", | |
| "Vormittag", | |
| "Mittag", | |
| "Nachmittag", | |
| "Abend", | |
| "Nacht" | |
| ], | |
| null | |
| ], | |
| [ | |
| "00:00", | |
| [ | |
| "05:00", | |
| "10:00" | |
| ], | |
| [ | |
| "10:00", | |
| "12:00" | |
| ], | |
| [ | |
| "12:00", | |
| "13:00" | |
| ], | |
| [ | |
| "13:00", | |
| "18:00" | |
| ], | |
| [ | |
| "18:00", | |
| "24:00" | |
| ], | |
| [ | |
| "00:00", | |
| "05:00" | |
| ] | |
| ] | |
| ] |
This file contains hidden or 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
| [ | |
| "de", | |
| [ | |
| [ | |
| "vm.", | |
| "nm." | |
| ], | |
| [ | |
| "AM", | |
| "PM" | |
| ] | |
| ], | |
| [ | |
| [ | |
| "vorm.", | |
| "nachm." | |
| ], | |
| null | |
| ], | |
| [ | |
| [ | |
| "S", | |
| "M", | |
| "D", | |
| "M", | |
| "D", | |
| "F", | |
| "S" | |
| ], | |
| [ | |
| "So.", | |
| "Mo.", | |
| "Di.", | |
| "Mi.", | |
| "Do.", | |
| "Fr.", | |
| "Sa." | |
| ], | |
| [ | |
| "Sonntag", | |
| "Montag", | |
| "Dienstag", | |
| "Mittwoch", | |
| "Donnerstag", | |
| "Freitag", | |
| "Samstag" | |
| ], | |
| [ | |
| "So.", | |
| "Mo.", | |
| "Di.", | |
| "Mi.", | |
| "Do.", | |
| "Fr.", | |
| "Sa." | |
| ] | |
| ], | |
| [ | |
| [ | |
| "S", | |
| "M", | |
| "D", | |
| "M", | |
| "D", | |
| "F", | |
| "S" | |
| ], | |
| [ | |
| "So", | |
| "Mo", | |
| "Di", | |
| "Mi", | |
| "Do", | |
| "Fr", | |
| "Sa" | |
| ], | |
| [ | |
| "Sonntag", | |
| "Montag", | |
| "Dienstag", | |
| "Mittwoch", | |
| "Donnerstag", | |
| "Freitag", | |
| "Samstag" | |
| ], | |
| [ | |
| "So.", | |
| "Mo.", | |
| "Di.", | |
| "Mi.", | |
| "Do.", | |
| "Fr.", | |
| "Sa." | |
| ] | |
| ], | |
| [ | |
| [ | |
| "J", | |
| "F", | |
| "M", | |
| "A", | |
| "M", | |
| "J", | |
| "J", | |
| "A", | |
| "S", | |
| "O", | |
| "N", | |
| "D" | |
| ], | |
| [ | |
| "Jan.", | |
| "Feb.", | |
| "März", | |
| "Apr.", | |
| "Mai", | |
| "Juni", | |
| "Juli", | |
| "Aug.", | |
| "Sep.", | |
| "Okt.", | |
| "Nov.", | |
| "Dez." | |
| ], | |
| [ | |
| "Januar", | |
| "Februar", | |
| "März", | |
| "April", | |
| "Mai", | |
| "Juni", | |
| "Juli", | |
| "August", | |
| "September", | |
| "Oktober", | |
| "November", | |
| "Dezember" | |
| ] | |
| ], | |
| [ | |
| [ | |
| "J", | |
| "F", | |
| "M", | |
| "A", | |
| "M", | |
| "J", | |
| "J", | |
| "A", | |
| "S", | |
| "O", | |
| "N", | |
| "D" | |
| ], | |
| [ | |
| "Jan", | |
| "Feb", | |
| "Mär", | |
| "Apr", | |
| "Mai", | |
| "Jun", | |
| "Jul", | |
| "Aug", | |
| "Sep", | |
| "Okt", | |
| "Nov", | |
| "Dez" | |
| ], | |
| [ | |
| "Januar", | |
| "Februar", | |
| "März", | |
| "April", | |
| "Mai", | |
| "Juni", | |
| "Juli", | |
| "August", | |
| "September", | |
| "Oktober", | |
| "November", | |
| "Dezember" | |
| ] | |
| ], | |
| [ | |
| [ | |
| "v. Chr.", | |
| "n. Chr." | |
| ], | |
| null | |
| ], | |
| 1, | |
| [ | |
| 6, | |
| 0 | |
| ], | |
| [ | |
| "dd.MM.yy", | |
| "dd.MM.y", | |
| "d. MMMM y", | |
| "EEEE, d. MMMM y" | |
| ], | |
| [ | |
| "HH:mm", | |
| "HH:mm:ss", | |
| "HH:mm:ss z", | |
| "HH:mm:ss zzzz" | |
| ], | |
| [ | |
| "{1}, {0}", | |
| null, | |
| "{1} 'um' {0}" | |
| ], | |
| [ | |
| ",", | |
| ".", | |
| ";", | |
| "%", | |
| "+", | |
| "-", | |
| "E", | |
| "·", | |
| "‰", | |
| "∞", | |
| "NaN", | |
| ":" | |
| ], | |
| [ | |
| "#,##0.###", | |
| "#,##0 %", | |
| "#,##0.00 ¤", | |
| "#E0" | |
| ], | |
| "€", | |
| "Euro", | |
| null | |
| ] |
This file contains hidden or 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
| [ | |
| [ | |
| [ | |
| "mi", | |
| "n", | |
| "in the morning", | |
| "in the afternoon", | |
| "in the evening", | |
| "at night" | |
| ], | |
| [ | |
| "midnight", | |
| "noon", | |
| "in the morning", | |
| "in the afternoon", | |
| "in the evening", | |
| "at night" | |
| ] | |
| ], | |
| [ | |
| [ | |
| "midnight", | |
| "noon", | |
| "morning", | |
| "afternoon", | |
| "evening", | |
| "night" | |
| ], | |
| null | |
| ], | |
| [ | |
| "00:00", | |
| "12:00", | |
| [ | |
| "06:00", | |
| "12:00" | |
| ], | |
| [ | |
| "12:00", | |
| "18:00" | |
| ], | |
| [ | |
| "18:00", | |
| "21:00" | |
| ], | |
| [ | |
| "21:00", | |
| "06:00" | |
| ] | |
| ] | |
| ] |
This file contains hidden or 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
| [ | |
| "en", | |
| [ | |
| [ | |
| "a", | |
| "p" | |
| ], | |
| [ | |
| "AM", | |
| "PM" | |
| ] | |
| ], | |
| [ | |
| [ | |
| "AM", | |
| "PM" | |
| ], | |
| null | |
| ], | |
| [ | |
| [ | |
| "S", | |
| "M", | |
| "T", | |
| "W", | |
| "T", | |
| "F", | |
| "S" | |
| ], | |
| [ | |
| "Sun", | |
| "Mon", | |
| "Tue", | |
| "Wed", | |
| "Thu", | |
| "Fri", | |
| "Sat" | |
| ], | |
| [ | |
| "Sunday", | |
| "Monday", | |
| "Tuesday", | |
| "Wednesday", | |
| "Thursday", | |
| "Friday", | |
| "Saturday" | |
| ], | |
| [ | |
| "Su", | |
| "Mo", | |
| "Tu", | |
| "We", | |
| "Th", | |
| "Fr", | |
| "Sa" | |
| ] | |
| ], | |
| null, | |
| [ | |
| [ | |
| "J", | |
| "F", | |
| "M", | |
| "A", | |
| "M", | |
| "J", | |
| "J", | |
| "A", | |
| "S", | |
| "O", | |
| "N", | |
| "D" | |
| ], | |
| [ | |
| "Jan", | |
| "Feb", | |
| "Mar", | |
| "Apr", | |
| "May", | |
| "Jun", | |
| "Jul", | |
| "Aug", | |
| "Sep", | |
| "Oct", | |
| "Nov", | |
| "Dec" | |
| ], | |
| [ | |
| "January", | |
| "February", | |
| "March", | |
| "April", | |
| "May", | |
| "June", | |
| "July", | |
| "August", | |
| "September", | |
| "October", | |
| "November", | |
| "December" | |
| ] | |
| ], | |
| null, | |
| [ | |
| [ | |
| "B", | |
| "A" | |
| ], | |
| [ | |
| "BC", | |
| "AD" | |
| ], | |
| [ | |
| "Before Christ", | |
| "Anno Domini" | |
| ] | |
| ], | |
| 0, | |
| [ | |
| 6, | |
| 0 | |
| ], | |
| [ | |
| "M/d/yy", | |
| "MMM d, y", | |
| "MMMM d, y", | |
| "EEEE, MMMM d, y" | |
| ], | |
| [ | |
| "h:mm a", | |
| "h:mm:ss a", | |
| "h:mm:ss a z", | |
| "h:mm:ss a zzzz" | |
| ], | |
| [ | |
| "{1}, {0}", | |
| null, | |
| "{1} 'at' {0}" | |
| ], | |
| [ | |
| ".", | |
| ",", | |
| ";", | |
| "%", | |
| "+", | |
| "-", | |
| "E", | |
| "×", | |
| "‰", | |
| "∞", | |
| "NaN", | |
| ":" | |
| ], | |
| [ | |
| "#,##0.###", | |
| "#,##0%", | |
| "¤#,##0.00", | |
| "#E0" | |
| ], | |
| "$", | |
| "US Dollar", | |
| null | |
| ] |
This file contains hidden or 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
| [ | |
| // ExtraDayPeriodFormats | |
| [ | |
| // Narrow | |
| [ | |
| "minuit", | |
| "midi", | |
| "mat.", | |
| "ap.m.", | |
| "soir", | |
| "nuit" | |
| ], | |
| // Abbreviated | |
| null, | |
| // Wide | |
| [ | |
| "minuit", | |
| "midi", | |
| "du matin", | |
| "de l’après-midi", | |
| "du soir", | |
| "du matin" | |
| ] | |
| ], | |
| // ExtraDayPeriodStandalone | |
| [ | |
| // Narrow | |
| [ | |
| "minuit", | |
| "midi", | |
| "mat.", | |
| "ap.m.", | |
| "soir", | |
| "nuit" | |
| ], | |
| // Abbreviated | |
| null, | |
| // Wide | |
| [ | |
| "minuit", | |
| "midi", | |
| "matin", | |
| "après-midi", | |
| "soir", | |
| "nuit" | |
| ] | |
| ], | |
| // ExtraDayPeriodsRules | |
| [ | |
| // midnight | |
| "00:00", | |
| // noon | |
| "12:00", | |
| // morning | |
| [ | |
| "04:00", | |
| "12:00" | |
| ], | |
| // afternoon | |
| [ | |
| "12:00", | |
| "18:00" | |
| ], | |
| // evening | |
| [ | |
| "18:00", | |
| "24:00" | |
| ], | |
| // night | |
| [ | |
| "00:00", | |
| "04:00" | |
| ] | |
| ] | |
| ] |
This file contains hidden or 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
| [ | |
| // LocaleId | |
| "fr", | |
| // DayPeriodsFormat | |
| [ | |
| // Narrow | |
| [ | |
| "AM", | |
| "PM" | |
| ], | |
| null | |
| ], | |
| // DayPeriodsStandalone | |
| null, | |
| // DaysFormat | |
| [ | |
| // Narrow | |
| [ | |
| "D", | |
| "L", | |
| "M", | |
| "M", | |
| "J", | |
| "V", | |
| "S" | |
| ], | |
| // Abbreviated | |
| [ | |
| "dim.", | |
| "lun.", | |
| "mar.", | |
| "mer.", | |
| "jeu.", | |
| "ven.", | |
| "sam." | |
| ], | |
| // Wide | |
| [ | |
| "dimanche", | |
| "lundi", | |
| "mardi", | |
| "mercredi", | |
| "jeudi", | |
| "vendredi", | |
| "samedi" | |
| ], | |
| // Short | |
| [ | |
| "di", | |
| "lu", | |
| "ma", | |
| "me", | |
| "je", | |
| "ve", | |
| "sa" | |
| ] | |
| ], | |
| // DaysStandalone | |
| null, | |
| // MonthsFormat | |
| [ | |
| // Narrow | |
| [ | |
| "J", | |
| "F", | |
| "M", | |
| "A", | |
| "M", | |
| "J", | |
| "J", | |
| "A", | |
| "S", | |
| "O", | |
| "N", | |
| "D" | |
| ], | |
| // Abbreviated | |
| [ | |
| "janv.", | |
| "févr.", | |
| "mars", | |
| "avr.", | |
| "mai", | |
| "juin", | |
| "juil.", | |
| "août", | |
| "sept.", | |
| "oct.", | |
| "nov.", | |
| "déc." | |
| ], | |
| // Wide | |
| [ | |
| "janvier", | |
| "février", | |
| "mars", | |
| "avril", | |
| "mai", | |
| "juin", | |
| "juillet", | |
| "août", | |
| "septembre", | |
| "octobre", | |
| "novembre", | |
| "décembre" | |
| ] | |
| ], | |
| // MonthsStandalone | |
| null, | |
| // Eras | |
| [ | |
| // Narrow | |
| [ | |
| "av. J.-C.", | |
| "ap. J.-C." | |
| ], | |
| // Abbreviated | |
| null, | |
| // Wide | |
| [ | |
| "avant Jésus-Christ", | |
| "après Jésus-Christ" | |
| ] | |
| ], | |
| // FirstDayOfWeek, | |
| 1, | |
| // WeekendRange | |
| [ | |
| 6, | |
| 0 | |
| ], | |
| // DateFormat | |
| [ | |
| // Short | |
| "dd/MM/y", | |
| // Medium | |
| "d MMM y", | |
| // Long | |
| "d MMMM y", | |
| // Full | |
| "EEEE d MMMM y" | |
| ], | |
| // TimeFormat | |
| [ | |
| // Short | |
| "HH:mm", | |
| // Medium | |
| "HH:mm:ss", | |
| // Long | |
| "HH:mm:ss z", | |
| // Full | |
| "HH:mm:ss zzzz" | |
| ], | |
| // DateTimeFormat | |
| [ | |
| // Short | |
| "{1} {0}", | |
| // Medium | |
| "{1} 'à' {0}", | |
| // Long | |
| null | |
| ], | |
| // NumberSymbols | |
| [ | |
| // Decimal | |
| ",", | |
| // Group, | |
| " ", | |
| // List, | |
| ";", | |
| // PercentSign, | |
| "%", | |
| // PlusSign, | |
| "+", | |
| // MinusSign, | |
| "-", | |
| // Exponential, | |
| "E", | |
| // SuperscriptingExponent, | |
| "×", | |
| // PerMille, | |
| "‰", | |
| // Infinity, | |
| "∞", | |
| // NaN, | |
| "NaN", | |
| // TimeSeparator, | |
| ":" | |
| ], | |
| // NumberFormats | |
| [ | |
| // Decimal | |
| "#,##0.###", | |
| // Percent | |
| "#,##0 %", | |
| // Currency | |
| "#,##0.00 ¤", | |
| // Scientific | |
| "#E0" | |
| ], | |
| // CurrencySymbol | |
| "€", | |
| // CurrencyName | |
| "euro", | |
| // Currencies | |
| null | |
| ] |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
J'ai ajouté les commentaires dans les 2 exemples en français (fr) :
default.jsonetdefault-extra.json.Détails dans l'API Angular :
https://github.com/angular/angular/blob/5.2.11/packages/common/locales/fr.tshttps://github.com/angular/angular/blob/5.2.11/packages/common/src/i18n/locale_data_api.tshttps://github.com/angular/angular/blob/5.2.11/packages/common/src/i18n/locale_data.tsToutes les langues gérées par Angular sont dans https://github.com/angular/angular/tree/5.2.11/packages/common/locales
Il faudrait exposer 2 méthodes REST qui renvoient :
Dans l'idéal : créer un autre fichier config que App.config, par ex.
LocaleTranslate.configouAffiliateLocale.config(pour ne pas alourdir App.config et séparer les responsabilités...) dans CMSS.Application, afin de partager les traductions de locale entre la couche C# et la couche Angular.