LCOV - code coverage report
Current view: top level - l10n - index.dart (source / functions) Hit Total Coverage
Test: lcov.info Lines: 0 6 0.0 %
Date: 2024-10-04 11:08:31 Functions: 0 0 -

          Line data    Source code
       1             : // Copyright 2023 The terCAD team. All rights reserved.
       2             : // Use of this source code is governed by a CC BY-NC-ND 4.0 license that can be found in the LICENSE file.
       3             : 
       4             : import 'package:app_finance/_configs/design_type.dart';
       5             : 
       6             : typedef LanguageDef = ({
       7             :   String id,
       8             :   String name,
       9             : });
      10             : 
      11             : const languageList = <LanguageDef>[
      12             :   (id: 'ar', name: 'اللغة العربية (AR)'),
      13             :   (id: 'az', name: 'Azərbaycanlı (AZ)'),
      14             :   (id: 'be', name: 'Тарашкевіца (BE)'),
      15             :   (id: 'be_EU', name: 'Latsinka (BE)'),
      16             :   (id: 'zh', name: '简体中文 (ZH-CN)'),
      17             :   (id: 'zh_TW', name: '繁體中文 (ZH-TW)'),
      18             :   (id: 'en', name: 'English (EN-US)'),
      19             :   (id: 'fr', name: 'Français (FR)'),
      20             :   (id: 'de', name: 'Deutsch (DE)'),
      21             :   (id: 'hi', name: 'हिंदी (HI-IN)'),
      22             :   (id: 'it', name: 'Italiano (IT)'),
      23             :   (id: 'ja', name: '日本語 (JA)'),
      24             :   (id: 'fa', name: 'فارسی (FA)'),
      25             :   (id: 'pl', name: 'Polski (PL)'),
      26             :   (id: 'pt', name: 'Português Europeu (PT)'),
      27             :   (id: 'pt_BR', name: 'Português Brasileiro (PTB)'),
      28             :   (id: 'es', name: 'Español (ES)'),
      29             :   (id: 'tr', name: 'Türk dili (TR)'),
      30             :   (id: 'uk', name: 'Українська (UK-UA)'),
      31             :   (id: 'uz', name: 'O\'zbek (UZ)'),
      32             : ];
      33             : 
      34           0 : String languageDesign(String? value) => switch (value) {
      35           0 :       'ar' => AppDesignType.rtlGeneral.name,
      36           0 :       'de' => AppDesignType.germany.name,
      37           0 :       'zh' => AppDesignType.asiaGeneral.name,
      38           0 :       'fa' => AppDesignType.rtlGeneral.name,
      39           0 :       _ => AppDesignType.global.name,
      40             :     };

Generated by: LCOV version 1.14