# ali2woo-lite/trunk/includes/classes/model/Language.php

AliNext – WooCommerce Dropshipping Plugin for AliExpress, version trunk. 36 lines.

- Page: https://pluginprobe.com/plugins/ali2woo-lite/trunk/code/includes/classes/model/Language.php
- Raw: https://pluginprobe.com/plugins/ali2woo-lite/trunk/raw/includes/classes/model/Language.php
- Modified: 2023-09-22T19:09:32+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/ali2woo-lite/trunk/code/includes/classes/model/Language.php#L10-L20`.

```php
<?php

/**
 * Description of Language
 *
 * @author Ali2Woo Team
 */

namespace AliNext_Lite;;

class Language {
    private $languages = array("en" => "English", "ar" => "Arabic", "de" => "German", 
                                "es" => "Spanish", "fr" => "French", "it" => "Italian",
                                "pl" => "Polish", "ja" => "Japanese", "ko" => "Korean", 
                                "nl" => "Notherlandish (Dutch)", "pt" => "Portuguese (Brasil)", "ru" => "Russian", 
                                "th" => "Thai", "id" => "Indonesian", "he" => "Hebrew", 
                                "tr" => "Turkish", "vi" => "Vietnamese");
    
    public function get_languages() {

        return $this->languages;
    }
    
    public function get_language($code) {
        $languages = $this->get_languages();
        foreach($languages as $c => $text){
            if($code === $c){
                return $text;
                break;
            }
        }
        return false;
    }

}

```
