mirror of
https://github.com/n8n-io/n8n.git
synced 2024-09-27 10:17:33 -07:00
9 lines
266 B
TypeScript
9 lines
266 B
TypeScript
|
import { join, dirname } from 'path';
|
||
|
|
||
|
/**
|
||
|
* Retrieve the path to the translation file for a node.
|
||
|
*/
|
||
|
export function getTranslationPath(nodeSourcePath: string, language: string): string {
|
||
|
return join(dirname(nodeSourcePath), 'translations', `${language}.js`);
|
||
|
}
|