LP#1775466 Local tweaks
authorBill Erickson <berickxx@gmail.com>
Mon, 6 Aug 2018 14:04:19 +0000 (10:04 -0400)
committerBill Erickson <berickxx@gmail.com>
Mon, 6 Aug 2018 14:04:19 +0000 (10:04 -0400)
Signed-off-by: Bill Erickson <berickxx@gmail.com>
Open-ILS/src/eg2/src/app/core/locale.service.ts
Open-ILS/src/eg2/src/app/staff/nav.component.html
Open-ILS/src/eg2/src/app/staff/nav.component.ts

index 9c4ae64..10be460 100644 (file)
@@ -37,11 +37,13 @@ export class LocaleService {
         window.location.href = url;
     }
 
-    // Returns i18n_l objects
+    // Returns codes supported for the current environment.
     supportedLocaleCodes(): string[] {
         return environment.locales || [];
     }
 
+    // Returns i18n_l objects matching the locales supported 
+    // in the current environment.
     supportedLocales(): Observable<IdlObject> {
         const locales = this.supportedLocaleCodes();
 
index 54fb503..2508cff 100644 (file)
     </div>
     <div class="navbar-nav" *ngIf="locales.length > 1 && currentLocale">
       <div ngbDropdown class="nav-item dropdown" placement="bottom-right">
-        <!-- TODO set / display current locale -->
         <a ngbDropdownToggle i18n i18n-title
           title="Select Locale"
           class="nav-link dropdown-toggle no-caret with-material-icon">
index a6720f5..1eeac6f 100644 (file)
@@ -36,7 +36,6 @@ export class StaffNavComponent implements OnInit {
             () => {
                 this.currentLocale = this.locales.filter(
                     l => l.code() === this.locale.currentLocaleCode())[0]
-                console.log('current locale ' + this.currentLocale.code());
             }
         );
     }