globalizejs / globalizejs/globalize

Requires for the client to split long messages at a space character and remove the space chacter?

Open
#601 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
4.8k
Forks
585
PR merge metrics
No merged PRs in 30d

Description

globalize seems to support a message by splitting to multiple messages. That seems useful (or necessary?) for long messages.

In case of split, does globalize require the client to split the message at a space character and remove the space character? Why doesn't it let the client simply split at any point?

Have not tried it. Just a question came up in mind while reading the source. Pls ignore if i missed something.

https://github.com/jquery/globalize/blob/master/src/message.js#L81

```
// If message is an Array, concatenate it.
if ( Array.isArray( message ) ) {
message = message.join( " " );
}
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.