Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions Document-Processing-toc.html
Original file line number Diff line number Diff line change
Expand Up @@ -5653,6 +5653,12 @@
<li><a href="/document-processing/excel/spreadsheet/react/how-to/paste-only-values-without-formatting">Paste only values without formatting and styles</a></li>
</ul>
</li>
<li>FAQ
<ul>
<li><a href="/document-processing/excel/spreadsheet/react/faq/custom-translations-for-non-localized-strings">Custom translations for non localized text</a></li>
<li><a href="/document-processing/excel/spreadsheet/react/faq/trigger-formula-calculation-in-manual-mode">Triggers formula calculations in manual mode</a></li>
</ul>
</li>
<li><a href="/document-processing/excel/spreadsheet/react/mobile-responsiveness">Mobile Responsiveness</a></li>
<li><a href="/document-processing/excel/spreadsheet/react/feature-list">Features Availability</a>
</li>
Expand Down
Original file line number Diff line number Diff line change
@@ -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
<SpreadsheetComponent locale='es' />
```

For more information, refer to the [localization](../global-local#localization) section of the documentation.
Original file line number Diff line number Diff line change
@@ -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
<SpreadsheetComponent calculationMode='Manual' ref={spreadsheetRef} />

// 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.