Title: Loading a language file
Last modified: December 14, 2017

---

# Loading a language file

 *  Resolved [8oris](https://wordpress.org/support/users/8oris/)
 * (@8oris)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/loading-a-language-file/)
 * Hello,
 * Is there anyway to load a language file?
 * I tried this way but it didn’t work. :/
 *     ```
       [wp-datatable id="table_webdoc" FAT="1"]
           dom: 'Bfrtip',
           paging: true,
           responsive: true,
           ordering: true,
           language: {"url": "dlweb-doc/wp-content/plugins/wp-datatable/French.lang"},
           buttons: [
               'copy', 'csv', 'colvis'
           ]
       [/wp-datatable]
       ```
   
 * Thanks
 * Cheers!
 * 8oris

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [samsk](https://wordpress.org/support/users/samsk/)
 * (@samsk)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/loading-a-language-file/#post-9782793)
 * Hi,
    datatables languages files are not part of the plugin. You have 3 options,
   how to do it. 1. provide your translated strings as a part of the [wp-datatable]
   configuration via language key ie. [https://datatables.net/plug-ins/i18n/French](https://datatables.net/plug-ins/i18n/French)
   I’m doing it this way, because this doesn’t requires additional http request.
 *  **Example:**
 *     ```
         [wp-datatable ...]
            language: {
               "search": "Rechercher",
               ....
            }
          [/wp-datatable]
       ```
   
 *  2. download language json from CDN, add it to media library and use its url.
   Translations are static, so they don’t need to be updated that often.
 *  3. use CDN url directly
    -  This reply was modified 8 years, 6 months ago by [samsk](https://wordpress.org/support/users/samsk/).
    -  This reply was modified 8 years, 6 months ago by [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/).
 *  Thread Starter [8oris](https://wordpress.org/support/users/8oris/)
 * (@8oris)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/loading-a-language-file/#post-9782910)
 * Thanks, i use the first option, it works perfectly! Thanks for your kind and 
   faster-than-light answer! ^^

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Loading a language file’ is closed to new replies.

 * ![](https://ps.w.org/wp-datatable/assets/icon-128x128.png?rev=1858074)
 * [WP DataTable](https://wordpress.org/plugins/wp-datatable/)
 * [Support Threads](https://wordpress.org/support/plugin/wp-datatable/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-datatable/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-datatable/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-datatable/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [8oris](https://wordpress.org/support/users/8oris/)
 * Last activity: [8 years, 6 months ago](https://wordpress.org/support/topic/loading-a-language-file/#post-9782910)
 * Status: resolved