Дозаливка
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
import { dataText } from '../text.js';
|
||||
|
||||
/**
|
||||
* @param {string} key
|
||||
* @returns {string}
|
||||
*/
|
||||
|
||||
export const getTextForModal = (key) => {
|
||||
if (!key) {
|
||||
return '[Îòñóòâóåò value].';
|
||||
}
|
||||
|
||||
return dataText[key] ?? `[${key}].`;
|
||||
};
|
||||
Reference in New Issue
Block a user