diff --git a/Document-Processing-toc.html b/Document-Processing-toc.html index 215638d7a..261414138 100644 --- a/Document-Processing-toc.html +++ b/Document-Processing-toc.html @@ -5653,6 +5653,12 @@
  • Paste only values without formatting and styles
  • +
  • FAQ + +
  • Mobile Responsiveness
  • Features Availability
  • diff --git a/Document-Processing/Excel/Spreadsheet/React/faq/custom-translations-for-non-localized-strings.md b/Document-Processing/Excel/Spreadsheet/React/faq/custom-translations-for-non-localized-strings.md new file mode 100644 index 000000000..2c5ed9418 --- /dev/null +++ b/Document-Processing/Excel/Spreadsheet/React/faq/custom-translations-for-non-localized-strings.md @@ -0,0 +1,46 @@ +--- +layout: post +title: How to Add Custom Translations for Missing Strings in Syncfusion Spreadsheet | Syncfusion +description: Learn how to add or override custom translations for missing strings in your current locale in the Syncfusion Spreadsheet React component. Improve localization easily. +control: Spreadsheet +platform: document-processing +documentation: ug +--- + +# How can I add custom translations for non-localized strings in my current locale? + +This FAQ explains how to add or override custom translations for non-localized strings in your current locale for the Syncfusion Spreadsheet React component. This ensures a seamless and localized user experience. + +## Steps to add custom translations for non-localized strings + +1. Review the Spreadsheet UI and note any non-localized or default English text in your selected locale. +2. Create a JavaScript object with key-value pairs, where each key is the string identifier and the value is your custom translation. + +```js +const customLocale = { + 'Cut': 'Cortar', + 'Copy': 'Copiar', + 'Paste': 'Pegar', + // Add more translations as needed +}; +``` + +3. Use the `L10n.load` method to merge your custom translations with the existing locale. This ensures that only the non-localized or overridden strings are updated, while the rest remain unchanged. + +```js +import { L10n } from '@syncfusion/ej2-base'; + +L10n.load({ + 'es': { + "spreadsheet": customLocale + } +}); +``` + +4. When initializing the Spreadsheet, set the [`locale`](https://ej2.syncfusion.com/react/documentation/api/spreadsheet/index-default#locale) property to your desired locale. + +```js + +``` + +For more information, refer to the [localization](../global-local#localization) section of the documentation. \ No newline at end of file diff --git a/Document-Processing/Excel/Spreadsheet/React/faq/trigger-formula-calculation-in-manual-mode.md b/Document-Processing/Excel/Spreadsheet/React/faq/trigger-formula-calculation-in-manual-mode.md new file mode 100644 index 000000000..6acdd98e6 --- /dev/null +++ b/Document-Processing/Excel/Spreadsheet/React/faq/trigger-formula-calculation-in-manual-mode.md @@ -0,0 +1,40 @@ +--- +layout: post +title: How to Trigger Formula Calculations in Manual Mode in Spreadsheet | Syncfusion +description: Learn how to trigger formula calculations when the Syncfusion Spreadsheet React component is rendered in manual calculation mode. +control: Spreadsheet +platform: document-processing +documentation: ug +--- + +# How do I trigger formula calculations when spreadsheet is rendered in manual mode? + +This FAQ explains how to manually trigger formula calculations when the Syncfusion Spreadsheet React component is set to manual calculation mode. This ensures formulas are recalculated as needed for accurate results. + +## Steps to trigger formula calculations in manual mode + +1. Set the Spreadsheet component's calculation mode to 'Manual' using the [`calculationMode`](https://ej2.syncfusion.com/react/documentation/api/spreadsheet/index-default#calculationmode) property. + +2. To trigger formula calculations programmatically, use the [`calculateNow()`](https://ej2.syncfusion.com/react/documentation/api/spreadsheet/index-default#calculatenow) method provided by the Spreadsheet instance. This method allows you to: + - Recalculate all formulas in the spreadsheet. + - Trigger calculations for a specific sheet by passing `'Sheet'` as the scope and the sheet name or index. + - Trigger calculations across the entire workbook by passing `'Workbook'` as the scope. + + +```js +// Set calculation mode to manual + + +// Trigger formula calculation for a specific sheet by name +spreadsheetRef.current?.calculateNow('Sheet', 'Sheet1'); + +// Trigger formula calculation for a specific sheet by index +spreadsheetRef.current?.calculateNow('Sheet', 0); // 0-based index + +// Trigger formula calculation for the entire workbook +spreadsheetRef.current?.calculateNow('Workbook'); +``` + +Call the `calculateNow()` method after making changes to cell values or formulas to ensure results are up to date. Specify the appropriate scope and sheet name or index as needed. + +For more information, refer to the [formula calculation](../formulas#calculation-mode) section of the documentation.