This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | console.log('--- Running Fetch Translations Script ---'); | |
| const fs = require('fs'); | |
| const path = require('path'); | |
| const {execSync} = require('child_process'); | |
| const fetchScriptPath = path.resolve(process.cwd(), 'scripts/locale/fetch-translations.js'); | |
| const MAGENTA = '\x1b[35m'; | |
| const RESET = '\x1b[0m'; | |
| const RED = '\x1b[38;5;197m'; | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | console.log('--- Running Fetch Translations Script ---'); | |
| const fs = require('fs'); | |
| const path = require('path'); | |
| const { execSync } = require('child_process'); | |
| const translationsFilePath = path.resolve(process.cwd(), 'src/locales/messages.en-us.json'); | |
| const fetchScriptPath = path.resolve(process.cwd(), 'scripts/locale/fetch-translations.js'); | |
| const MAGENTA = '\x1b[35m'; | |
| const RESET = '\x1b[0m'; | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | console.log('--- Running Fetch Translations Script ---'); | |
| const fs = require('fs'); | |
| const path = require('path'); | |
| const { execSync } = require('child_process'); | |
| const translationsFilePath = path.resolve(process.cwd(), 'src/locales/messages.en-us.json'); | |
| const fetchScriptPath = path.resolve(process.cwd(), 'scripts/locale/fetch-translations.js'); | |
| const MAGENTA = '\x1b[35m'; | |
| const RESET = '\x1b[0m'; | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | npx babel src.js --out-file output.js | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | npx babel --version | |
| npm run babel --version | |
| yarn babel --version | |
| yarn run babel --version | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | { | |
| "presets":["@babel/env"] | |
| } | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | { | |
| "presets": ["env"] | |
| } | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | new Promise(function (resolve, reject) { | |
| setTimeout(() => { | |
| try{ | |
| noSuchAFunction(); // not defined | |
| } catch(error) { | |
| reject(error); | |
| } | |
| }, 1000); | |
| }).catch(e => console.log('Something went wrong!')); | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | new Promise(function(resolve, reject) { | |
| setTimeout(() => { | |
| reject(new Error("Whoops!")); (*) | |
| }, 1000); | |
| }).catch(alert); | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | new Promise(function(resolve, reject) { | |
| setTimeout(() => { | |
| throw new Error("Whoops!"); | |
| }, 1000); | |
| }).catch(alert); | 
NewerOlder