@xuda.io/drive_module 1.1.982 → 1.1.983

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.js +2 -2
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -1726,7 +1726,7 @@ const ocr_drive_file = async function (app_id, doc) {
1726
1726
 
1727
1727
  function detectLanguageByCountry(cfCountry) {
1728
1728
  const countryData = countryLanguage.getCountry(cfCountry);
1729
- let lang = "en";
1729
+ let lang = "eng";
1730
1730
  // Check if the country data is available
1731
1731
  if (
1732
1732
  countryData &&
@@ -1736,7 +1736,7 @@ const ocr_drive_file = async function (app_id, doc) {
1736
1736
  // Return the first official language of the country
1737
1737
  // return countryData.languages[0].iso639_1;
1738
1738
  for (let language of countryData.languages) {
1739
- lang += `+${language.iso639_1}`;
1739
+ lang += `+${language.iso639_2}`;
1740
1740
  }
1741
1741
  }
1742
1742
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/drive_module",
3
- "version": "1.1.982",
3
+ "version": "1.1.983",
4
4
  "description": "Xuda Drive Server Module",
5
5
  "main": "index.js",
6
6
  "dependencies": {